Wake on Tweet – because you never asked for it…

Wake on Tweet

Wake on Tweet

tl:dr Just send a tweet with the hashtag #wakeonlan and a properly formatted mac address like AA:BB:CC:DD:EE:FF, an ip address or FQDN and a port number and that is it. Easy.

It all started a few weeks ago when I was looking at Slack to use at a clients site so we could integrate more. If you haven’t tried Slack I would highly recommend taking a look – it’s WhatsApp for groups with a steroid injection of crazy fun stuff for developers. One of those fun things are hooks where you can define actions when things happen. So I have Slack hook alert to a group called #twitter whenever a tweet mentions @depicus it would call a webpage on a server. Sadly the info Slack passes wasn’t enough for me as it doesn’t include the message body of the tweet. So sadly my brave idea of Wake on Lan via Twitter died….

Continue reading



Check slow WordPress sites with Splunk and fix them

I’d thought this site was a bit sluggish, it’s a WordPress site with quite a few plugins as I often like to play with new WordPress stuff. I’m now running a Splunk server at home, again, mainly for testing and development for a new project for one of my clients. One of Splunks Apps is a web site monitor and I decided to give it a go.

splunk-web-monitor

As you can see from the image above my blog was hitting the red slow response time all the time. It was time to remove some old pluggins, anything that was not being used. The after was a lot better and pages come it smother now. Some pluggins can be like toolbars, often not needed and they just slow things down.



Using Google SMTP with Postfix on Ubuntu/Debian

I run a few servers at home for various things including a little Raspberry Pi running Debian which emails me alerts when certain things happen. I send these to an Outlook.com account or an Office365 account but being a home IP I often get blocked

“(host mx2.hotmail.com[65.55.33.119] said: 550 OU-002 (COL004-MC5F2) Unfortunately, messages from xxx.xxx.xxx.xxx weren’t sent. Please contact your Internet service provider since part of their network is on our block list.”

So the simple solution is to add a relay host to Postfix.
Continue reading