Category Archives: nerd

It’s 2017 and ZFS STILL doesn’t have an API?!?

Why is it that, in 2017, with ZFS, –routinely called the most advanced file system in the world– I’m having to use awk to parse the status output from its built-in tools? Why is there STILL no documented, easily query-able API for me to use? The only way that there is for me to get Python to interact with ZFS is for me to use awkward wrappers with little to no documentation. There’s a bunch of undocumented APIs, but nothing that’s really usable for someone without advanced understanding of the platform. I just want to be notified when a drive dies, or starts having problems.
Continue reading It’s 2017 and ZFS STILL doesn’t have an API?!?

ZFS on Linux NFS shares lost at reboot

On several occasions NFS has inexplicably stopped working with my ZFS shares under ZFS on Linux on Ubuntu Server 14.04×64. It seemed to happen every reboot, after checking the sharenfs property on each of the ZFS FS’ I found they were set properly, but still clients were getting access denied when trying to mount the share. Other times, even when they were able to re-mount the share they wouldn’t do so unless I manually triggered it.
Continue reading ZFS on Linux NFS shares lost at reboot

Exchange 2013 2007 CoExistence Frozen Transport Queues

We’re in the middle of an Exchange 2007 to 2013 On Premise migration, and we haven’t been having the best time. After a major mail crash in 2011, every time we’ve attempted to move off the recovered server, either to Exchange 2010 or to a freshly built Exchange 2007 setup, we’ve encountered major, migration stopping issues.
Continue reading Exchange 2013 2007 CoExistence Frozen Transport Queues

Full home audio without iTunes

I want to have speakers in every room of my house, and I want them to be able to play the same stations, or different ones. Basically I want to have digital FM radio across the whole house, so that as I walk from the living room, to the back yard the music doesn’t skip a beat. This is currently offered by Sonos at a ridiculous price, and was offered until 2012 by Logitech, with Squeezebox at a less ridiculous price. Squeezebox being discontinued, I’m not willing to sink my money or time into that, and Sonos is too expensive.
Continue reading Full home audio without iTunes

Bash script to automatically restart MySQL when website database connection is down

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

Configure Multiple PPTP VPNs on Tomato Based Router

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

Why I’m a CA and you can too…

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…

Compiling Mosh for OpenIndiana

A buddy of mine has convinced me of the merits of Mosh, and I want to use it with my OpenIndiana file server. There’s no package for it, so I’ve got to compile from source. This is the first time I’ve ever done anything like this, so it’s all a bit daunting. Coming from Ubuntu where installing things are generally never more complicated than ‘apt-get install $package’, having to do things the old fashioned way is a bit more difficult.
Continue reading Compiling Mosh for OpenIndiana

Static IP on multiple NICs in OpenIndiana with NWAM

I wanted to set one of the NICs on my OI box to have a static since it’s got a direct connection to my ESX box, bypassing any switches, and directly linked to a VM on that machine. I routinely transfer large chunks of data (1-20GB files) from that VM to my OI box, so I wanted to completely move that off of my main network. The VM is a Windows box, and I have the NIC set statically to and wanted to set the OI box to .2. However, I couldn’t find a simple way to do it with ifconfig, and everything I found suggested disabling the NWAM service and switching to the old way of doing things, which is bad. Apparently.
Continue reading Static IP on multiple NICs in OpenIndiana with NWAM

An open letter to Vic Toews

I am as vocal in my opposition to this bill as I can be without grabbing people on the street and yelling at them to pay attention to how obscene it is. I routinely bring it up in conversation, I talk about it routinely on Twitter, I try to make everyone listen to me when I talk about how flawed it is, and often spam anyone that has the slightest inclination to avoid instantly writing me off as a paranoid nerd with information about it. I’ve donated several hundred dollars to to aid them in raising awareness, and written several letters to my MP, to other members of parliament, signed petitions, etc.
Continue reading An open letter to Vic Toews