Here’s a quick script for reading a data file containing serialized data generated by PHP, and outputting it in a human readable format to a Linux command line interface. A short web search found no existing utilities for achieving this, so hopefully it will be useful.… Read the rest
Whitelisting subdirectories using Git’s .gitignore
Git’s handling of directories and wildcards doesn’t follow bash conventions. First glance at a .gitignore file can easily mislead you into thinking that typical directory references will work recursively and allow whitelisting of many directories at a time. But directories don’t really exist for Git, or at least not as you’d expect.… Read the rest
Fix Firefox fullscreen video bug on Gnome 3
Does this sound like a familiar scenario?: You’ve found your favourite Seinfeld clip, you’ve waited for it to buffer, you’ve clicked fullscreen mode, swiftly alt-tabbed to check your mail (the thousandth time today), switched back into Firefox, clicked fullscreen again, only to find the comedy genius’ face has vacated your screen, or frozen, glass-eyed and unanimated, as the sound plays on?… Read the rest
Tip: Fix Composer package 404 errors with continuous integration servers
Is PHP’s composer package manager pulling in dependencies successfully on your development machine but failing on your continuous integration server? In my case, Drone.io, the young, ludicrously simple CI platform, was failing in setup of a PHP project because of strange 404 “Not found” errors.… Read the rest
Manually pair bluetooth devices on Linux via CLI (NFC workaround)
Today my new Thinkpad bluetooth keyboard arrived. It’s beautiful; I’m thrilled. It’s such a better companion for my XPS 15 9530 laptop than my old Penclick K2 the two don’t even compare.
NFC comes built in to the new keyboard, but unfortunately Gnu/Linux doesn’t support NFC well yet.… Read the rest