Recent posts

  • Python request timeouts & HTTPbin

    Recently I added a static analysis tool (Bandit – which is an excellent tool and deserves it’s own post) to our Python microservices CI pipeline at work. Upon doing this, I discovered that our requests calls didn’t have timeouts set on them. By default, requests don’t have a timeout set. At first, I thought it…

    Read more…


  • john-hunt.com back online

    After quite some time I’ve managed to get my server back online. The issue was that running it on a raspberry pi 3 alongside other things pretty much ensured the OOM killer would kick in and start killing things off. I got one of those HP elitedesk PCs for only £40 off eBay to host…

    Read more…


  • john-hunt.com now via Raspberry Pi!

    This site is now hosted on my raspberry pi zero w – incredible! Hosting costs are now on a real shoestring budget. I’ll be tinkering with it to get the site to perform a bit better (microssd is not fast..) This was part fun experiment, part cost saving exercise.

    Read more…


  • List merge commits between two branches in Git

    This handy snippet is useful for seeing what merged PRs there are between two branches – eg master/release or whatever you’re using. I find it v.handy: git log –merges –graph –pretty=format:’%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset’ –abbrev-commit –date=relative origin/production..origin/master

    Read more…


  • Load pull request (branch diff) files in PhpStorm

    Stick this in your .bash_profile or .bashrc file: function diffopen() { git diff –name-only “$1” | xargs -d ‘\n’ pstorm; } Then in your project folder, say you want to open all files that differ from your master branch: diffopen master Note, on OSX you’ll need the GNU version of xargs for this to work,…

    Read more…