sudo apt-get install postgresql-9.1-postgis
sudo su postgres
bash <(curl -s https://raw.github.com/gist/18660599/create_template.sh)
sudo apt-get install postgresql-8.4-postgis
sudo su postgres
bash <(curl -s https://raw.github.com/gist/1866117/create_template_add_lang.sh)
brew install postgis
bash <(curl -s https://raw.github.com/gist/1860599/create_template.sh)