Skip to content

Instantly share code, notes, and snippets.

View rduarte's full-sized avatar
🏠
Working from home

Ricardo Duarte rduarte

🏠
Working from home
View GitHub Profile
@rduarte
rduarte / gist:232534
Created November 12, 2009 02:19 — forked from justintv/.bashrc
PS1="\\w:\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)\$ "
@rduarte
rduarte / gist:190009
Created September 21, 2009 01:15 — forked from anonymous/gist:44400
class ApplicationController < ActionController::Base
before_filter :set_application
private
def set_current_account
@current_account = Account.find_by_subdomain(request.subdomains.first)
end
end
class CustomersController < ApplicationController
set :application, "myapp"
set :keep_releases, 5
# git options
set :scm, "git"
set :repository, "git://github.com/georgeguimaraes/myapp.git"
set :branch, "master"
set :deploy_via, :remote_cache
# deploy credentials