James Loh on Twitter
James Loh on GitHub
James Loh's RSS feed
Infrastructure engineer at Ghost. 38 posts and counting.
Reducing JSON objects with JQ
I was recently playing around with Salt stack and its JSON output mode but needed a way to make the data more manageable. By default Salt returns data as separate JSON objects for...
22nd November 2019
OSX: Clear DNS Cache
This works on Mojave but likely works on some of the newer versions of OSX as well. Just run the below command in your terminal of choice: sudo killall -HUP mDNSRespondersudo is required...
2nd September 2019
VS Code: OSX key repeating
To enable key repeating in OSX run the below in terminal defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool falseTo disable it again, run: defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool trueYou need to...
29th August 2019
Create a EdgeRouter DMZ/Guest Network
EdgeRouters are a cheap and easy way to get a nice home router that gives you a proper CLI interface and have amazing throughput. After purchasing an EdgeRouter Lite 12+ months ago I...
21st May 2019
GeoJS gets a 2018 overhaul
2018 was a massive year for GeoJS. The API has grown from getting just 28,000 hits a day to 13,000,00+. Thats over a 400% increase in 12 months! In October...
26th January 2019