Just create a new api key in the developer console, replace it in the code below and it should work. Then you can call "whatever_you_call_the_file.rb /Downloads/some_image_with_text.jpg" and google will OCR-it and the script will print out the...
If, like me, you suffer from lazius extremis (lazy bastard, for the layman), you probably hate having to lock your computer when you leave and entering a password when you come back.
Fear not, young padawan, UDEV and xdotool to the rescue!
Here's...
My new favorite application for OSX is called Helium.
It's basically something that allows you to keep an always-on-top window with whatever video (youtube, local, etc.) you want to have playing while you do other things.
Pretty awesome!
Here's how to get the number of battery charging cycles on your laptop on OSX:
ioreg -l | grep LegacyBatteryInfo | cut -d '{' -f 2 | tr -d \} | tr ',' '=' | awk -F'=' '{print $12}'