Skip to content

Instantly share code, notes, and snippets.

@georgepalmer
georgepalmer / gist:1901068
Created February 24, 2012 13:52
Red iTerm2 console when using ssh
Edit your ~/.ssh/config:
Host myserver
HostName www.yourserver.com
User deploy
LocalCommand echo -e "\033]Phff0000\033\\"
PermitLocalCommand yes
Then:
=PROGRESS REPORT==== 24-Mar-2009::20:30:37 ===
supervisor: {local,inet_gethost_native_sup}
started: [{pid,<0.106.0>},{mfa,{inet_gethost_native,init,[[]]}}]
=PROGRESS REPORT==== 24-Mar-2009::20:30:37 ===
supervisor: {local,kernel_safe_sup}
started: [{pid,<0.105.0>},
{name,inet_gethost_native_sup},
{mfa,{inet_gethost_native,start_link,[]}},
{restart_type,temporary},
@georgepalmer
georgepalmer / gist:44689
Created January 8, 2009 11:22
Rails initializer for CouchDB
# Rails initializer for CouchDB
begin
config = YAML::load(File.open('config/couchdb.yml'))
rescue
puts "ERROR: Could not read config/couchdb.yml"
exit(1)
end
begin
RelaxDB.configure(config[RAILS_ENV])