Skip to content

Instantly share code, notes, and snippets.

@rknLA
rknLA / gist:6086098
Last active December 20, 2015 06:29 — forked from djq/gist:2846196
update after adding `for-science` should remove the need to install the packages twice. also fixed typo.
#!/bin/bash
#
# Install Postgres 9.1, PostGIS 2.0 and pgRouting on a clean Ubuntu 12.04 install (64 bit)
# updated to PostGIS 2.0.1
# basics
apt-get install python-software-properties
apt-add-repository ppa:sharpie/for-science # To get GEOS 3.3.3
apt-get update
@rknLA
rknLA / gist:1955344
Created March 2, 2012 03:28 — forked from jipiboily/gist:1955326
How to apply an override with Deface
# Step 1: you need to add the files in say "app/overrides", ie: "/app/overrides/insert_this_here.rb"
# Step 2: add that in your application.rb to load them (and decorators)
config.to_prepare do
# Load application's model / class decorators (optional for Deface, but you should have it in your app if you use Spree AFAIK.
Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
Rails.configuration.cache_classes ? require(c) : load(c)
end
# Load application's view overrides
Dir.glob(File.join(File.dirname(__FILE__), "../app/overrides/*.rb")) do |c|