Code Snippets
- 24 Mar 2013 Bash: Listing number of open HTTP connections per IP in Linux
- 4 Jan 2013 Bash: Script to copy live MySQL database & files to development server
- 28 Dec 2012 Bash: Upgrade phpMyAdmin via the command line (on multiple servers at once)
- 26 Dec 2012 Bash: How to bulk (batch) rename files in Debian/Ubuntu
- 25 Dec 2012 Bash: Find new files in Linux
- 25 Dec 2012 PHP: Writing to standard error stream in PHP CLI
- 22 Dec 2012 PHP: Recursively delete a directory, including symlink support
- 22 Dec 2012 PHP: Recursively copy a directory, including symlink support
- 20 Dec 2012 WordPress: Split functions.php into multiple files and autoload them
- 17 Dec 2012 Bash: Extracting images from a .ico file in Debian
- 27 Nov 2012 WordPress: Keyboard shortcuts to indent/outdent and format as code in TinyMCE
- 18 Nov 2012 WordPress: Get HTTP redirect destination URL in PHP
- 18 Nov 2012 WordPress: Insert a post into WordPress in a script
- 20 Oct 2012 WordPress: Display WordPress admin area dates in UK English (en_GB) format (day first)
- 8 Aug 2012 WordPress: Store WordPress post password cookies for the browser session only (instead of 10 days)
- 8 Aug 2012 PHP: Resize an image on the fly and cache it (like Drupal’s ImageCache)
- 6 Jul 2012 Ruby on Rails: Fully restart Phusion Passenger app during cap deploy
- 5 Jul 2012 PHP: Zip a single dynamically generated file
- 25 Mar 2012 Ruby on Rails: Allow access by IP address with CanCan
- 11 Mar 2012 Ruby on Rails: Automatically push changes to Git repo before cap deploy
- 11 Mar 2012 Ruby on Rails: Download data from production database using Replicate
- 10 Mar 2012 AutoHotkey: Sleep/suspend/hibernate computer when TV is switched off
- 3 Mar 2012 AutoIt: Automate backup to an external hard drive with Beyond Compare using AutoIt
- 3 Mar 2012 Bash: Create / re-create a Linux test user account on demand
- 3 Mar 2012 Bash: Create a symlink on a remote server when `ln` is disabled
- 3 Mar 2012 WordPress: Hide the title box in the Edit Post page in the admin area
- 3 Mar 2012 WordPress: Hide the permalink and edit button on the Edit Post admin page
- 3 Mar 2012 AutoHotkey: Toggle hidden files and/or file extensions in Windows Explorer
- 3 Mar 2012 AutoHotkey: Create a new file with keyboard shortcut in Windows Explorer
- 13 Oct 2011 AutoHotkey: Paste as plain text
- 24 Aug 2011 AutoHotkey: Create a new file from a template, prompting for the filename
- 23 Apr 2011 Bash: General-purpose Yes/No prompt function (“ask”)
- 10 Mar 2011 WordPress: Set site URL in the config file instead of the database
- 25 Feb 2011 Bash: Detect Cygwin in scripts
- 6 Feb 2011 AutoHotkey: Paste the current date into any program
- 6 Feb 2011 AutoHotkey: Sleep/suspend/hibernate computer on keyboard shortcut
- 6 Feb 2011 AutoHotkey: Turn monitor off with a keyboard shortcut
- 6 Feb 2011 AutoHotkey: Run a program with a keyboard shortcut
- 25 Jan 2011 PHP: Get the domain name from a URL
- 22 Jan 2011 WordPress: Alternative to the_category() that works with nested categories
- 22 Jan 2011 WordPress Multisite: List of all blogs
- 22 Jan 2011 WordPress Multisite: Set options for all blogs in a network
- 22 Jan 2011 WordPress Multisite: Automatically generate subdomain for new blog
- 22 Jan 2011 WordPress Multisite: Automatically enable plugins in new blogs
- 20 Jan 2011 WordPress Multisite: Set default theme for new blogs
- 20 Jan 2011 WordPress: Prevent WordPress sending any emails
- 20 Jan 2011 WordPress: Toggle category on/off in theme using ajax
- 20 Jan 2011 WordPress: Force additional categories to be added to a post on save
- 20 Jan 2011 WordPress: Set default category / tags for a new post using links
- 29 Dec 2010 WordPress: Display correct number of comments in Filosofo Comments Preview