James Loh

Infrastructure engineer at Ghost. 37 posts and counting.

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 »

Tagged in Notes
| Posted

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 »

Tagged in Notes
| Posted

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 »

Tagged in GeoJS, Projects
| Posted

GeoJS goes open-source

I always planned on open-sourcing GeoJS but at the start the code was extremely rough. I wanted to clean it up before actually publishing it. That time has now come! I've been working »

Tagged in GeoJS, Projects
| Posted

Replacing Disqus with Remarkbox

Disqus is a service I've been eying to remove for some time now after its stream of issues and continuous tracking of users. Unfortunately when migrating from WordPress to Ghost I wasn't left »

Tagged in Remarkbox, Disqus
| Posted

GeoJS: Multiple IPs & ChatOps

In April this year I launched GeoJS, my geolocation lookup API. In just six months it has managed to get 100k+ hits a week, not bad for something I've never advertised. Today I'm »

Tagged in GeoJS, Projects
| Posted

Downloading Imgur albums with python

I have a fair few wallpapers. As of writing, I've got around 240+ different pictures in a folder that my OS of choice cycles (poorly) through. Mostly landscapes and space photos with some »

Tagged in Python, Imgur
| Posted