rss_feed

Server

Rerouting All PHP Requests to index.php

A common need for a lot of PHP applications is the ability to have the entire application run through an index.php file, but with clean URLs. This is how you can configure Apache to do so

12 September 2023

Batch Convert 4-Space Indentations to 2-Space

While adding a linter to an old project, I wrote the following bash script to convert 4-space indentations to 2-space indentations. This example recursively looks for *.js files starting at the script’s location. Of course, it can be used for any type of file though by simply changing the extension.

1 March 2018

Working with Linux in Windows: Linux Server in VirtualBox

I have written before about having to work in Windows 7 with Docker which only runs natively on Linux, macOS or Windows 10.

1 November 2016

Update Multiple WordPress Installations

Between several of my own websites as well as the websites I’ve done for other people and am hosting, the number of WordPress installations on my server has climbed exponentially. In order to make my life a bit easier, however, I’ve come up with a way to automatically keep all of my installations up-to-date.

15 February 2016