This website contains notes & cheatsheets for web development and Linux administration.
Particular focus on WordPress, PHP, Linux, Jekyll, Ubuntu & Apache.
This site is maintained by David Egan:
15 Oct 2017
Create a LUKS encrypted backup partition for Ubuntu 16.04 Xenial Xerus that is automatically mounted on boot.
20 Jul 2017
Fail2Ban can help protect your Linux server from attack. It's a Python package that monitors log files and dynamically adjusts firewall rules to block malicious IP addresses. This article shows how to configure Fail2Ban so that specified IP addresses are ignored.
03 Jul 2017
Ethereum is a decentralized blockchain-based platform that runs smart contracts. Because of the decentralized nature of Ethereum, smart contracts run exactly as programmed - short of an internet apocalypse, there is no possibility of downtime, censorship, fraud or third-party interference. The network is cryptographically secure, decentralized and tamper-proof.
01 Jul 2017
Install Bitcoin Core in Ubuntu 16.04 - how to download and verify from bitcoin.org.
22 Jun 2017
Enable all Apache virtual host configurations at once. This article provides a useful BASH script that loops through and enables all vhost configs - useful when setting up new development machines or changing servers.
28 May 2017
When running migrations on Laravel 5.4 and MariaDB you may encounter an error related to the permitted maximum length of keys - "1071 Specified key was too long; max key length is 767 bytes" Fortunately, there's an easy fix.
22 May 2017
This article lists some sensible configuration defaults for Apache 2.4 on a Ubuntu 16.04 server. It explains how to apply these globally at the server level.
17 May 2017
When submitting a form to a WordPress site, there are a number of reserved keywords that should not be used as name attributes - including “name”, “author” and “type”. Using such keywords may result in odd errors - either unexplained 404 errors or the template reverting to the
26 Mar 2017
When developing a custom Laravel package, you may require an additional package. This article describes how to use Composer to manage such dependencies, and how to use the custom package's service provider to make the added functionality available.
24 Mar 2017
Composer is a really convenient way to manage WordPress plugins. Add a couple of lines to the project `composer.json`, run `composer update` and your plugins will be set up.
14 Mar 2017
12 Mar 2017
Reducing a numerically indexed multi-dimensional array to a simple array can be achieved easily by means of combining
array_merge() with the ‘splat’ (
28 Feb 2017
According to their website, Composer is a dependency manager for PHP. While true, I think this is a bit of an understatement. I’m fairly new to Composer, but it’s revolutionising my workflow.
25 Feb 2017
Notes and snippets on using Let's Encrypt with Apache on Ubuntu 16.04 Xenial.
30 Jan 2017
Receive Slack notifications when activity occurs on a Bitbucket repo. This is a useful way for team members to monitor progress.