Fades out the notes field in WorkFlowy until you hover over it or focus it, to make it easier to see the main list items.
I use PuTTY all the time to connect from Windows to my Linux servers via SSH. These are the settings I use (that differ from the defaults).
In June 2014, Nominet will open up registration of domains directly under “.uk”, removing the need for “.co.uk”. We explain what’s changing and how this affects you.
Very bad things can happen if your password is discovered by a hacker, so it’s vital to keep your passwords secure. Here we bring you our top tips to help you avoid your email account / website being hacked.
In aid of Crohn’s disease.
16 July 1999 – 6 August 2013
Debian 7 (Wheezy) is due to come out soon, but I didn’t want to wait to upgrade to PHP 5.4, nor to install the release candidate. I tried using the Wheezy repository, but got dependency errors. Fortunately Dotdeb provides packages for…
This was useful when fighting a DDoS attack on one of our web servers.
I use this to point all subdomains of a domain to my local development server.
Originally I was using apticron to email me whenever new security updates were available and then manually applying them, but with 3 Debian servers and frequent updates this was getting annoying. So I decided to automate it.
In order to ensure phpMyAdmin is kept up to date without having to manually upgrade it, I decided to find a way to script it. I found the instructions here, but here’s a more detailed version.
Synergy is a cross-platform program that lets you share a keyboard & mouse between multiple computers over a network. (I use it for controlling my MacBook using my PC keyboard and mouse.) Synergy supports hotkeys, but there is no way to…
This is based on my instructions for Debian and a bit from this forum post. It requires root access and you must be comfortable using the command line.
This is a script I use on a lot of sites to copy the database (MySQL) and any uploaded files to the development site, and modify the database as required.
This script makes it easy to upgrade phpMyAdmin on one or multiple servers at the same time.
rename -v s/OLD/NEW/ FILENAMES
How to write to STDOUT and STDERR in PHP.
function copy_dir($src, $dst)
I use this to split my theme’s functions.php into multiple smaller files on particularly complex sites, and to autoload those files (instead of having to manually require each one).
A CMS is a system that allows you, as a non-technical user, to easily manage the content of your website, without needing to learn anything advanced (such as HTML)…
icotool -x -o . favicon.ico
Quod and Turf Tavern, Oxford – with a brief stop to look at the Bodleian Library Christmas tree.
This is a filter to take Gravity Forms format dates (dd/mm/yyyy) and convert them to WP-Types format dates (integer).
In this example the event start & end dates are entered as timestamps using WP-Types. It could also be modified for Advanced Custom Fields which uses strings.
This allows you to indent lists/paragraphs in the TinyMCE WYSIWYG editor using Tab, and outdent using Shift+Tab. I wrote it because I write a lot of nested lists, it’s tedious using the keyboard to indent and outdent, and I couldn’t find any…
My sister came to visit and brought me homemade cake!
With wp_insert_post() and wp_set_post_terms()…
Makes a HTTP request and read the Location header(s) to determine the redirect destination.
While entering several back-dated posts into a WordPress blog, I got annoyed at the date fields being in American month-day-year format and decided to fix it.
Stan the cat meets Becks the dog.
Copied from this style and modified to also hide the folder icon and show an arrow instead. /* ==UserStyle== @name Hide blank icons in bookmarks toolbar in Firefox @namespace djm.me @version 1.0.0 @author Dave James Miller (https://djm.me/) @homepageURL https://djm.me/code-snippets/2012/08/hide-blank-icons-in-bookmarks-toolbar-in-firefox @license…