Skip to content

Instantly share code, notes, and snippets.

Avatar

Colin Nederkoorn sud0n1m

View GitHub Profile
View gist:349619
sudonim:rubbertest/ $ cap rubber:create_staging [17:37:22]
triggering load callbacks
* executing `rubber:init'
* executing `rubber:create_staging'
Hostname to use for staging instance [production]:
Roles to use for staging instance [web,app,db:primary=true]:
* executing `rubber:create'
/Users/sudonim/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/gems/1.8/gems/amazon-ec2-0.9.10/lib/AWS.rb:313:in `aws_error?': AWS was not able to validate the provided access credentials (AWS::AuthFailure)
from /Users/sudonim/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/gems/1.8/gems/amazon-ec2-0.9.10/lib/AWS.rb:253:in `make_request'
from /Users/sudonim/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/net/http.rb:543:in `start'
View gist:350348
sudonim:common/ $ cap rubber:create_staging [18:15:06]
triggering load callbacks
* executing `rubber:init'
** Auto role: web => production.foo.com, {:platform=>"linux"}
** Auto role: haproxy => production.foo.com, {:platform=>"linux"}
** Auto role: app => production.foo.com, {:platform=>"linux"}
** Auto role: passenger => production.foo.com, {:platform=>"linux"}
** Auto role: apache => production.foo.com, {:platform=>"linux"}
** Auto role: db => production.foo.com, {:platform=>"linux", :primary=>true}
** Auto role: mysql_master => production.foo.com, {:platform=>"linux"}
View gist:350410
sudonim:rubbertest/ $ cap rubber:create_staging [10:39:05]
triggering load callbacks
* executing `rubber:init'
* executing `rubber:create_staging'
Hostname to use for staging instance [production]:
Roles to use for staging instance [web,app,db:primary=true]:
* executing `rubber:create'
* Security Group already in cloud, syncing rules: foobar_production_haproxy
* Security Group already in cloud, syncing rules: foobar_production_mysql_master
* Security Group already in cloud, syncing rules: foobar_production_app
View gist:361373
////////// ERROR AT THE END OF:
RUBBER_ENV=staging ALIAS=staging ROLES=web,haproxy,app,mysql_master,passenger cap rubber:create
/////////////////////////////////
* executing "sudo -p 'sudo password: ' sh -c 'echo compat=0 > /etc/ec2-init/is-compat-env'"
servers: ["staging.streetappschallenge.com"]
[staging.streetappschallenge.com] executing command
View gist:361394
sudonim:cp-test/ (master) $ cap rubber:setup_dns_aliases [13:51:29]
triggering load callbacks
* executing `rubber:init'
** Auto role: web => staging.streetappschallenge.com, {:platform=>"linux"}
** Auto role: haproxy => staging.streetappschallenge.com, {:platform=>"linux"}
** Auto role: app => staging.streetappschallenge.com, {:platform=>"linux"}
** Auto role: passenger => staging.streetappschallenge.com, {:platform=>"linux"}
** Auto role: apache => staging.streetappschallenge.com, {:platform=>"linux"}
** Auto role: mysql_master => staging.streetappschallenge.com, {:platform=>"linux"}
** Auto role: db => staging.streetappschallenge.com, {:platform=>"linux", :primary=>true}
View gist:361606
dns_provider: zerigo
zerigo:
customer_id: xxxx
email: xxx@xxx.com
token: xxxxx
type: A
ttl: 300
dns_records:
- host: "#{(RUBBER_ENV == 'production') ? '' : 'www-' + (RUBBER_ENV || 'default')}"
View gist:361607
sudonim:cp-test/ (master✗) $ RUBBER_ENV=staging cap rubber:setup_dns_aliases [17:32:42]
triggering load callbacks
* executing `rubber:init'
** Auto role: web => staging.streetappschallenge.com, {:platform=>"linux"}
** Auto role: haproxy => staging.streetappschallenge.com, {:platform=>"linux"}
** Auto role: app => staging.streetappschallenge.com, {:platform=>"linux"}
** Auto role: passenger => staging.streetappschallenge.com, {:platform=>"linux"}
** Auto role: apache => staging.streetappschallenge.com, {:platform=>"linux"}
** Auto role: mysql_master => staging.streetappschallenge.com, {:platform=>"linux"}
** Auto role: db => staging.streetappschallenge.com, {:platform=>"linux", :primary=>true}
View campfire-emoji.txt
Surround these with : e.g. :calling:
+1
-1
bulb
calling
clap
cop
email
feet
@sud0n1m
sud0n1m / gist:1860410
Created Feb 18, 2012
Error installing redis with homebrew on clean install 10.7 with command line tools for Xcode
View gist:1860410
➜ ~ brew install redis
==> Downloading http://redis.googlecode.com/files/redis-2.4.7.tar.gz
File already downloaded in /Users/sudonim/Library/Caches/Homebrew
==> make -C src
MAKE hiredis
CC anet.o
CC ae.o
CC redis-benchmark.o
clang: warning: argument unused during compilation: '-rdynamic'
clang: warning: argument unused during compilation: '-ggdb'
@sud0n1m
sud0n1m / gist:1860416
Created Feb 18, 2012
Error installing macvim on Command Line Tools for Xcode
View gist:1860416
➜ ~ brew install macvim
==> Downloading https://github.com/b4winckler/macvim/tarball/snapshot-64
File already downloaded in /Users/sudonim/Library/Caches/Homebrew
==> ./configure --with-features=huge --with-tlib=ncurses --enable-multibyte --with-macarchs=x86_64 --enable-pe
==> make
Starting make in the src directory.
If there are problems, cd to the src directory and run make there
cd src && make first
mkdir objects
CC="gcc -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe -DMACOS_X_UNIX -no-cpp-precomp -I/System/Library/Frameworks/Tcl.framework/Headers -D_REENTRANT=1 -D_THREAD_SAFE=1 -D_DARWIN_C_SOURCE=1 " srcdir=. sh ./osdef.sh