MySQL Relative Time Since
You have some data which many users edit often, and you want to return a field with some sort of…
MacOS Compact VDI file
In order to compact a virtualbox VDI file and recover some of the lost space (especially useful when using a…
OpenVPN keeps disconnecting with an inactivity timeout
I’ve used openvpn on Mac (using Tunnelblick) for a few years for a home->work VPN connection with no issues, and…
Posting Slack message on Google Docs spreadsheet cell update
We’ve been using a bit of a google doc recently for logging stuff, and sometimes cells get missed. I wanted…
Whats my IP from command line
I often need to check my WAN IP address – so this little command will do it for you in…
Rename a branch in SVN
If you made a typo or a similar mistake when naming your new branch, and you want to rename it,…
Mac OSX – Can’t eject disk (in use)
So you get that annoying “The volume can’t be ejected because it’s currently in use.” message trying to unmount your…
svnX – Use DiffMerge as diff tool
So, I use svnX on MacOSX and I find DiffMerge a much nicer application than the default FileMerge, but I…
Plex – External FAT32 USB drive
So, trying to use a Linux Mint laptop and Plex for a lower power consumption server seemed a good idea,…
Mysqldump all databases and gzip
So, quick and simple MySQL backup in a CRON. #!/bin/bash _hour=`date '+%H'`; _user="root"; _pass="thepassword"; _dest="/srv/backups/daily/"; mysqldump -u $_user -p$_pass --all-databases…