Blog posts
Writing about code, systems and online technology.
-
-
Read JSON request data with PHP
While working on an API project, I realised that I actually didn’t know how to receive JSON data in the request body with PHP. Turns out it’s really simple with the
php://input
stream. -
Disable Git prompt in Oh My ZSH
-
Custom MySQL configuration on Travis
We ran into some character encoding issues with our automated tests on Travis recently. Luckily, it’s very easy to change the MySQL configuration in your test environment.
-
Stop logging cron jobs to /dev/null
I often see cron jobs configured to pipe all output to /dev/null to get rid of it. Other times the emails cron sent are piling up and ignored due to alert fatigue.