Category Archives: Uncategorized

Let Chrome Windows Opened by a Keyboard Shortcut Steal Focus in Ubuntu

I recall that this configuration has been necessary with Ubuntu+Unity+Compiz for years. I just had to figure it out again, so I want to document the solution. Install CompizConfig Settings Manager, then run it. sudo apt-get install compizconfig-settings-manager compizconfig-settings-manager Then … Continue reading

Posted in Uncategorized | Leave a comment

Play Cookie Clicker on Digital Ocean

Digital Ocean Droplet sudo apt-get install xvfb chromium-browser x11vnc Xvfb -screen 0 1024x768x16 -ac & DISPLAY=:0 chromium-browser & while true; do x11vnc -localhost -display 0; sleep 1; done Local Machine ssh -L 5900:localhost:5900 Then open a VNC viewer to … Continue reading

Posted in Uncategorized | Leave a comment

The “Easy Way” to Add Custom DNS Servers in Ubuntu

Goal Just add a goddamned nameserver to Ubuntu. I have lxc, and I want to ssh to my containers without knowing their IPs or starting them in the foreground. Is that so hard?! Solution Install dnsmasq. sudo apt-get install -y … Continue reading

Posted in tutorials, Uncategorized | Tagged , , , , , , | 3 Comments

Quickie: Fix Missing “Downloads” Icons in Chrome/Chromium

Have you run across this bug? It’s not a huge deal, but in Ubuntu, you generally get broken icons on the Chrome/Chromium Downloads tab. There are related bug reports here and here, but I don’t see any movement on this. … Continue reading

Posted in quickies, Uncategorized | Tagged , , , , , , , | Leave a comment

JavaScript Performance: Iterating over Arrays with Holes

I was sketching some code that basically took some data from a database and cached it in an array to be repeatedly reused. Conveniently, each row from the database had a unique ID, so I could use that as an … Continue reading

Posted in javascript, Uncategorized | Tagged , , , , , , , | 3 Comments