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…
A bunch of ramblings about PHP programming, JQuery, MySQL and other 'stuff'
We’ve been using a bit of a google doc recently for logging stuff, and sometimes cells get missed. I wanted…
I often need to check my WAN IP address – so this little command will do it for you in…
If you made a typo or a similar mistake when naming your new branch, and you want to rename it,…
So you get that annoying “The volume can’t be ejected because it’s currently in use.” message trying to unmount your…
So, I use svnX on MacOSX and I find DiffMerge a much nicer application than the default FileMerge, but I…
So, trying to use a Linux Mint laptop and Plex for a lower power consumption server seemed a good idea,…
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…
If you have large JSON files with application settings in, you need to be sure that the settings only appear…
Simple function for using in_array() with case insensitive querying. function i_in_array($needle, $haystack) { return in_array(strtolower($needle), array_map("strtolower", $haystack)); }
If you need to backup your SVN repositories, then you can use this bash script to do so: #!/bin/bash DATE=`date…