Count file types by extension

February 17, 2023

Retrieve a list of all files, by extension, and display a count of them.

How to Clean Up GitLab Artifacts

October 27, 2022

If you are running into GitLab storage quota limits there is a high likelihood that the usage is coming from job artifacts. These artifacts contain information about the job itself, such as the files an application built, code scan results, etc. In my experience, there is usually no need to keep the old job runs

How to fix the “sed command expects \” error on Mac OS

April 7, 2021

If you are familiar with the sed command on Linux then you might be in for an unpleasant surprise the first time you try to use it on Mac OS. Mac OS runs the BSD version of the sed command. As such, there are some syntax differences. An example of a classic sed command, that

Highly Performant PHP Sessions with Redis

March 29, 2021

The web is stateless, but often the apps we build are not. To facilitate state in web apps, PHP provides a session handling mechanism. Sessions are off by default, and enabled with the `session_start()` function. Read more about PHP session handling at https://www.php.net/manual/en/book.session.php If you have worked with PHP sessions before you may have noticed performance issues

How to Detect Mobile Devices Accessing a Shopify Store

January 25, 2021

how you how to detect mobile devices accessing a Shopify store. Shopify is a great platform for many ecommerce stores. Developing themes is simple with the Liquid template language, however it does have some drawbacks. Liquid templates are pre-rendered on the server and not able to respond dynamically to the device accessing the store. This means whether