CGI on OS X El Capitan

Lately, I had to quickly set up a small CGI running example. Here's how to do it. 1. Local Web root folder If it does not exist, create a ~/Sites and a ~/Sites/cgi-bin folder. Create a new file /etc/apache2/your-username.conf containing the following: <Directory "/Users/your-username/…

How to highlight code snippets in LaTeX

The following procedure has been tested on OS X 10.9.2, MacTex-2013 and TextMate 1.5.11. Install minted and its dependency (pygmentize) sudo easy_install pip sudo pip2.7 install Pygmentize sudo tlmgr install minted In TextMate go to Bundles --> LatTeX --> Preferences... and fill…