Skip to content

Instantly share code, notes, and snippets.

View jwo's full-sized avatar

Jesse Wolgamott jwo

View GitHub Profile
@jwo
jwo / .rspec
Created May 24, 2012 01:38 — forked from coreyhaines/.rspec
Loading just active record
--colour
-I app
@jwo
jwo / gist:2775692
Created May 23, 2012 14:54 — forked from johnnygoodman/gist:2772856
Vehicle Class, Make == Instance Variable Dynamic
#-------------------------------------
# this part just to run the specs
#
#
require 'rspec'
class Vehicle; end
# end
#-------------------------------------
#require_relative './vehicle'
@jwo
jwo / gist:2585904
Created May 3, 2012 14:11 — forked from unnitallman/gist:944011
sqlite with activerecord outside rails
require 'active_record'
require 'logger'
ActiveRecord::Base.logger = Logger.new(STDERR)
ActiveRecord::Base.establish_connection(
adapter: "sqlite3",
database: ":memory:"
)
@jwo
jwo / .rspec
Created March 29, 2012 01:04 — forked from coreyhaines/.rspec
Loading just active record
--colour
-I app
@jwo
jwo / gist:1546140
Created January 1, 2012 03:25 — forked from mguterl/gist:308216
#!/bin/sh
set -u
set -e
# Example init script, this can be used with nginx, too,
# since nginx and unicorn accept the same signals
# Feel free to change any of the following variables for your app:
APP_ROOT=/home/deploy/public_html/rm/current
PID=$APP_ROOT/tmp/pids/unicorn.pid
ENV=production