Skip to content

Instantly share code, notes, and snippets.

View sud0n1m's full-sized avatar

Colin Nederkoorn sud0n1m

View GitHub Profile
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'
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"}
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
////////// 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
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}
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')}"
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}
@sud0n1m
sud0n1m / campfire-emoji.txt
Created June 13, 2011 22:14 — forked from bryanl/campfire-emoji.txt
campfire emoji
Surround these with : e.g. :calling:
+1
-1
bulb
calling
clap
cop
email
feet
@sud0n1m
sud0n1m / gist:1860410
Created February 18, 2012 18:01
Error installing redis with homebrew on clean install 10.7 with command line tools for Xcode
➜ ~ 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 February 18, 2012 18:02
Error installing macvim on Command Line Tools for Xcode
➜ ~ 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