Skip to content

Instantly share code, notes, and snippets.

View ryanmarshall's full-sized avatar

Marshall ryanmarshall

View GitHub Profile
@joeybaker
joeybaker / pulldb.sh
Created September 15, 2012 00:10
Import a DB from Heroku. Only, be fast about.
#! /bin/bash
#
# You should do a find/replace for APPNAME, LOCALDBUSER, and LOCALDBNAME
#
# via https://devcenter.heroku.com/articles/pgbackups#importing-from-a-backup, https://github.com/heroku/heroku/issues/556
# by: @joeybaker
heroku pgbackups:capture --expire --app APPNAME
curl -o latest.sql `heroku pgbackups:url --app APPNAME`
@ctrochalakis
ctrochalakis / dalton.rb
Created June 11, 2010 12:17
facebook, google, twitter, yahoo warden strategies
require 'dalton/strategies/skroutz'
require 'dalton/strategies/facebook'
require 'dalton/strategies/openid' # yahoo, #google
require 'dalton/strategies/twitter'
# Setup OpenId file storage, don't change the storage engine!
require 'openid/store/filesystem'
Rails.configuration.middleware.use(Rack::OpenID,
OpenID::Store::Filesystem.new(Rails.root + 'tmp/openid'))