GET parameter manipulation with PHP

Using a combination of:

The behaviour of http_build_query() to remove parameters when passed null PHP array ‘union’ addition

gives a simple, yet powerful set of native GET parameter manipulation methods.

Calculating Sphinx Memory Usage

Even when you are using on-disk indexes, Sphinx can require a surprising large amount of memory as it has to keep all the index files (except the .spd and .spp ones) in memory. If you have more than a couple of indexes it can be a hassle to calculate the RAM usage manually

Monolog human readable exception email with stack trace

For the times when you just want those exception to be delivered to your inbox with as much information as possible.

Converting over some smaller apps to use monolog I found my favourite snippet for emailing the critical exceptions which bubble to the top of the app wasn't that easy to replicate.