Tagged: command line
Using Python for super fast regex search and replace
Posted: December 20, 2011
Category: Python
Tagged: command line, python, regex
I recently needed to do a regex search and replace on a large MySQL file. I often use my code editor for search & replace but I tried Komodo Edit, Sublime Text 2, and Gedit and they struggled greatly to open the file and none of them could search it. I know there's sed, grep + awk, etc. but I decided to give Python a try since I've been working at learning it.
Using firefox on a headless server to make screenshots of websites
Posted: October 11, 2010
Category: Linux
Tagged: command line, firefox, linux, server administration, tutorial
I needed a reliable way to generate screenshots of websites for a client's project I'm working on. I wasn't too wild about using a third party like thumbalizr or webshots if I could do it myself. I decided to detail my ordeal here in the hopes it will help somebody else...

