A collection of articles and snippets I've collected over the years.
May 30, 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.
May 30, 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...
January 3, 2018
This is a very basic WordPress plugin that adds Google Analytics tracking code to your WordPress Site. It doesn't have any advanced features like many other plugins. You can get the plugin from...
November 29, 2017
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.
August 15, 2017
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...
August 8, 2017
Here's how to remove specific tabs from Magento's admin product edit pages.
June 9, 2017
Here's how to upgrade Magento 2 to a later version. For example, if you are currently running 2.1.6 and you need to upgrade to 2.1.7.
April 19, 2017
Here's how to get the URL of a CMS page or a static block in Magento.
April 18, 2017
I'm forever forgetting how to use a different ssh port with rsync, so here's how to do it.
March 30, 2017
If you want to perform a HEAD request with PHP on an URL you can use the `stream` functionality...
August 18, 2016
A cheat sheet containing useful Magento Collection snippets.
August 17, 2016
Here's a Magento snippet showing how to use a Group By clause on a Magento collection model.
August 5, 2016
Homebrew is easy to use and makes installing services such as MySQL or Elasticsearch a breeze. Here's how to manage those services.
August 4, 2016
I'm pleased to announce that I have recently passed the Magento Certified Developer exam.
July 28, 2016
I've had a problem on a few older projects where composer dies with "????%" after running `composer update`. Here's the fix.