Skip to content

Instantly share code, notes, and snippets.

@jamesjohnson
jamesjohnson / README.md
Created February 19, 2012 22:07 — forked from dlo/README.md
Ubuntu 11.10, PostGIS 1.5 Setup Script

Installing PostGIS

Ubuntu 11.10

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

Ubuntu 11.04

@jamesjohnson
jamesjohnson / aws_installer.sh
Created June 20, 2012 18:31
Amazon AWS Server Setup
#!/usr/bin/bash
#This will set up your machine for using django 1.4
sudo add-apt-repository -y ppa:pitti/postgresql
sudo add-apt-repository -y ppa:git-core/ppa
sudo add-apt-repository -y ppa:bchesneau/gunicorn
sudo add-apt-repository -y ppa:nginx/stable
sudo add-apt-repository -y ppa:natecarlson/haproxy # For Load Balancing
sudo apt-get update -y
@jamesjohnson
jamesjohnson / gist:2974809
Last active February 3, 2016 18:58
Postgis AWS installation
#!/usr/bin/bash
#This will set up your machine for using django 1.4
sudo add-apt-repository -y ppa:pitti/postgresql
sudo add-apt-repository -y ppa:git-core/ppa
sudo add-apt-repository -y ppa:bchesneau/gunicorn
sudo add-apt-repository -y ppa:nginx/stable
sudo add-apt-repository -y ppa:natecarlson/haproxy # For Load Balancing
sudo apt-get update -y
@jamesjohnson
jamesjohnson / SQL
Last active August 29, 2015 14:17
test.sql
DROP USER testdb;
CREATE USER testdb;
ALTER DATABASE testdb OWNER to testdb;
CREATE TABLE companys (
id SERIAL PRIMARY KEY,
name TEXT
);
CREATE TABLE users (