I’ve been noticing that periodically my MySQL service will hang and require a restart. It’s easy enough to SSH in and restart it, but I only catch it after the fact. So I wrote this little script which curls my website, sees that it’s down and restarts MySQL and shoots me an email with sSMTP. This only checks for the MySQL service not accepting connections from Apache. If there’s an error with Apache, or it’s not running this won’t do anything. Continue reading Bash script to automatically restart MySQL when website database connection is down
I’m very happy the fat fuck is out of office. He’s bad for Toronto in many ways. From his idiotic stance on mass transit, his shit take on bikes, giving Don Cherry an ounce of attention, trouncing worker’s right to strike, his stance on non-football related social services, his attempt to Americanize Toronto politics with idiotic partisan rhetoric, it’s all bad and I’m against him.
Continue reading On Rob Ford
Going through my site-stats, and list of common referrers I found a few neat things, the first is that Google provides about 98% of my traffic. That wasn’t surprising, but I’m interested in the following two referrers, which are rather frequent, and are not public websites.
Continue reading Things that make me happy…
I was asked if it was possible to rebrand our Office apps so that by default, we’d all be compliant with corporate branding when composing email, PowerPoint presentations, and Word documents. If I didn’t get to do fun things with computers, that would actually sound like the worst thing ever. But this kind of stuff is neat, so yay me! Continue reading Change default font in Office 2010 (Outlook, Word, PowerPoint) by GPO
I have a VPN setup from my router to work so that I don’t have to dial one up when I need to get to some server from home. However, I also live in Canada and want to be able to purchase stuff from Google Play that I can’t get here, namely music, and be able to get US Netflix, Amazon Prime bonuses, etc. So I needed to set up a second PPTP VPN, since the US endpoint I have access to is a Windows server with RRAS. Unfortunately, the GUI doesn’t support two PPTP VPNs, so I had to figure out how to script it. Continue reading Configure Multiple PPTP VPNs on Tomato Based Router
SSL Certificates are expensive, and most CAs aren’t that respectable anyhow, so why are we all using their certificates to prove we trust each other? I figure you’re here for one of two reasons. You’re either my friend and got here accidentally or you’re looking for computer advice; you either trust me because we’re friends, or you trust me enough to make your computer work better.
Continue reading Why I’m a CA and you can too…
While revisiting Mosh, I came across an issue I didn’t remember when going through my initial Moshtribulations. Trying to compile the Protocol Buffers failed with the following error due to a missing package:
Continue reading Installing Protocol Buffers on OpenIndiana