Skip to content

Instantly share code, notes, and snippets.

View davemcp's full-sized avatar

Dave McPherson davemcp

View GitHub Profile
@davemcp
davemcp / pg-install.sh
Created June 22, 2016 23:17
Install Postgres client on Ubuntu
sudo sh -c "echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' > /etc/apt/sources.list.d/pgdg.list"
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-9.5-postgis-2.2 postgresql-contrib-9.5
sudo apt-get install postgresql-common
sudo apt-get install postgresql-9.5 libpq-dev
sudo apt-get install postgresql-9.5-pgrouting
sudo apt-get pgadmin3
@davemcp
davemcp / Andrew Bolt and other fuck-tards I avoid
Created April 6, 2011 00:48
A list of people who shit me/us to tears
* Andrew Bolt / http://en.wikipedia.org/wiki/Andrew_Bolt
* Catherine Deveny / http://en.wikipedia.org/wiki/Catherine_Deveny
* Miranda Devine / http://en.wikipedia.org/wiki/Miranda_Devine
* The entire ACL. But Jim Wallace in particular / http://australianchristianlobby.org.au
* Climate Skeptics, especially Gavin Atkins / http://asiancorrespondent.com/author/gavinatkins/
#!/usr/bin/env ruby
begin
require 'rubygems'
require 'rails'
rescue LoadError
puts "\n=== ACTION REQUIRED ===\n\n"
puts "Could not load Rails. This is a required dependency of Synapse."
puts "Please install it with `gem install rails`.\n\n"
exit
Feature: Generate a new Synapse app
lorem ipsum else
Scenario: Generate a new synapse app
Given Synapse gem is installed
When when I generate a synapse app
Then I should have the generated files