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 [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
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')}"
////////// 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}
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: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
@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:1876736
Created February 21, 2012 14:10
Error installing jekyll
gem install jekyll
Fetching: liquid-2.3.0.gem (100%)
Fetching: fast-stemmer-1.0.0.gem (100%)
Building native extensions. This could take a while...
Fetching: classifier-1.3.3.gem (100%)
Fetching: directory_watcher-1.4.1.gem (100%)
Fetching: syntax-1.0.0.gem (100%)
Fetching: maruku-0.6.0.gem (100%)
Fetching: kramdown-0.13.5.gem (155B)
ERROR: Error installing jekyll:
@sud0n1m
sud0n1m / gist:1917447
Created February 26, 2012 15:54
Docco install commands for Lion assuming homebrew and nothing else.
brew install python
### Add python to the path so OSX doesn't use system python
export PATH="/usr/local/share/python:${PATH}"
### Install pip to install pygments
easy_install pip
pip install --upgrade distribute
### Install pygments for syntax highlighting
pip install pygments