Ryan's Blog

$ cat /dev/consciousness | nc -l 80

Running Hgweb With NGINX and UWSGI

Over the weekend, I wanted to get hgweb running for a personal project, but the only tutorials that I could find were for CGI, FastCGI or just simply proxying to hg serve. None of these options seemed ideal to me, so I went searching for a different way. Since hgweb is a python application, it made sense that it could be run under a WSGI server. These are the notes that I pieced together from various blog and mailing list posts. I hope that someone finds it useful.

Expand and Unexpand

Yesterday, I was Googling for the sed expression to convert spaces into tabs and I discovered two Linux commands that I did not know about: expand and unexpand. These commands are available by default on Mac OS X and Ubuntu.