Howto's, snippets, and articles I've written over the years.
Recently I needed to send someone a PDF of a bunch of scanned documents. Here's how I did it
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.
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.
I'm forever having to lookup how to use Apache's .htaccess to redirect http to https so here it is.
Here's how to redirect a non-www sub-domain request to the www subdomain using Apache's .htaccess file
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?
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.
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.
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.
There are many reasons why you would want to password protect your website, or a section of your website. Here's how to setup a .htaccess file to password protect your website.
I had a use case where a Magento admin user was limited to viewing the orders only. They should be able to view orders but not perform any actions on an order. The best way to do this with Magento is to remove admin mass actions for a specific user role.
Here's how to remove specific tabs from Magento's admin product edit pages.