Skip to content

Instantly share code, notes, and snippets.

View ryanwood's full-sized avatar

Ryan Wood ryanwood

View GitHub Profile
@ryanwood
ryanwood / active_admin_heroku.rb
Created October 4, 2011 14:36 — forked from hoverlover/active_admin_heroku.rb
Rails initializer for using ActiveAdmin with Sass on Heroku
if Rails.env.production?
require 'fileutils'
FileUtils.mkdir_p(Rails.root.join("tmp", "stylesheets"))
template_paths = [
"#{Gem.loaded_specs['activeadmin'].full_gem_path}/app/assets/stylesheets", # Rails 3.1.x (asset pipeline)
"#{Gem.loaded_specs['activeadmin'].full_gem_path}/lib/active_admin/sass" # Rails 3.0.x
]
old_compile_path = "#{Rails.root}/public/stylesheets"
@ryanwood
ryanwood / postgresql.rb
Created December 30, 2011 14:54
Postgres 8.4.6 Homebrew forumula
require 'formula'
require 'hardware'
class Postgresql < Formula
homepage 'http://www.postgresql.org/'
url 'http://ftp2.uk.postgresql.org/sites/ftp.postgresql.org/source/v8.4.6/postgresql-8.4.6.tar.bz2'
md5 'fcc3daaf2292fa6bf1185ec45e512db6'
depends_on 'readline'
depends_on 'libxml2' if MACOS_VERSION < 10.6 # Leopard libxml is too old

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: