Howto's, snippets, and articles I've written over the years.
Magento 2: How to disable the Admin Two Factor Auth (2FA) FeatureSeptember 17th, 2020
Today I installed Magento 2 for the first time in about a year. Once installed I navigated to the admin area and was presented with a two factor auth warning. Heres how I disabled it.
Symfony: Open file in VSCode or PHPStorm from the browserApril 30th, 2020
Did you know you can open files in your IDE direct from Symfony's exception pages?
How to Set a User Agent for PHP fopen() callsJanuary 21st, 2020
How to set a user agent when using PHP's fopen() with an URL
How To Create A Multi-Page PDF From ImagesJanuary 14th, 2020
Recently I needed to send someone a PDF of a bunch of scanned documents. Here's how I did it
Using Docker with LaravelJuly 21st, 2019
When developing on a Laravel project I've used Homebrew for my web server and database, or used a Vagrant box. Whilst these work well most of the time there's an alternative that is quickly becoming the de-facto standard: Docker. Fortunately, getting Laravel to work with Docker is quite straightforward.
How to disable a payment method on the frontend with Magento 1May 24th, 2019
Here's how to disable a payment method on the front-end of a Magento 1 site whilst making it available in the admin area.
Apache: Use .htaccess to redirect http to httpsAugust 25th, 2018
I'm forever having to lookup how to use Apache's .htaccess to redirect http to https so here it is.
Apache: Use .htaccess to redirect non-www to wwwAugust 25th, 2018
Here's how to redirect a non-www sub-domain request to the www subdomain using Apache's .htaccess file
How To Clear Google Chrome’s 301 Redirect CacheMay 30th, 2018
Ever had a dev site set up and had it 301 redirect to 'https', only to find that Google Chrome caches this and you can't get the 'http://' version after?
How to import a Google Sitemap into a MySQL tableMay 30th, 2018
Here's a quick snippet showing how to import a Google Sitemap file into a MySQL table. This is useful if you need to do anything with the urls such as scrape the pages or check for 301/302/404 results.
Magento Admin Invalid Form KeyMay 30th, 2018
I Recently came across a situation where I couldn't log in to the Magento admin area, getting 'invalid form key on admin'. Here's how to fix it.
Google Analytics WordPress PluginJanuary 3rd, 2018
I wanted to learn now to create a basic plugin for WordPress and have made this very basic WordPress plugin that adds Google Analytics tracking code to your WordPress Site.