This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# so we all can get along | |
sudo ipfw pipe 1 config bw 70KByte/s | |
sudo ipfw add 1 pipe 1 src-port 80 | |
sudo ipfw delete 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ chef-solo -c /etc/chef/solo.rb -j /etc/chef/dna.json | |
[Tue, 20 Apr 2010 15:20:55 +0000] INFO: Starting Chef Solo Run | |
[Tue, 20 Apr 2010 15:20:57 +0000] WARN: Missing gem 'right_aws' | |
[Tue, 20 Apr 2010 15:20:57 +0000] WARN: Missing gem 'mysql' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/node/attribute.rb:387:in `method_missing': Attribute ipaddress is not defined! (ArgumentError) | |
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/node.rb:251:in `send' | |
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/node.rb:251:in `method_missing' | |
from /var/chef-solo/cookbooks/djbdns/attributes/djbdns.rb:24:in `from_file' | |
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook.rb:83:in `load_attribute_file' | |
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook.rb:76:in `load_attributes' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ chef-solo -c /etc/chef/solo.rb -j /etc/chef/dna.json | |
[Tue, 20 Apr 2010 03:43:45 +0000] INFO: Starting Chef Solo Run | |
[Tue, 20 Apr 2010 03:43:47 +0000] WARN: Missing gem 'right_aws' | |
[Tue, 20 Apr 2010 03:43:47 +0000] WARN: Missing gem 'mysql' | |
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/node/attribute.rb:387:in `method_missing': Attribute domain is not defined! (ArgumentError) | |
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/node.rb:251:in `send' | |
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/node.rb:251:in `method_missing' | |
from /var/chef-solo/cookbooks/bootstrap/attributes/bootstrap.rb:49:in `from_file' | |
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook.rb:83:in `load_attribute_file' | |
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.10/bin/../lib/chef/cookbook.rb:76:in `load_attributes' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install libcurl3 libxml2 libxml2-dev libxslt1-dev | |
sudo gem install pauldix-feedzirra |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# run with: curl -s http://gist.github.com/265272.txt | bash | |
set -e | |
localdir=$HOME/.mongodb | |
datadir=$localdir/data | |
conf=$localdir/mongod.conf | |
agentdir=$HOME/Library/LaunchAgents | |
agent=$agentdir/org.mongodb.mongod.plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~/src | |
git clone git://github.com/masterkain/ImageMagick-sl.git | |
cd ImageMagick-sl | |
chmod +x install_im.sh | |
sh install_im.sh | |
gem install rmagick | |
#via http://hocuspokus.net/2010/03/installing-rmagick-on-snow-leopard-leopard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: mongodb | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Mongodb startup script | |
# Description: Mongodb start stop daemon sends SIGINT to terminate | |
# say man signal to see details | |
# Please check the startup params and replication options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rails_mongo_mapper.rb | |
# | |
# Code borrowed from Kyle Banker (who borrowed from Ben Scofield) and Justin Henry | |
# | |
# To use: | |
# rails project_name -m http://gist.github.com/gists/252053.txt | |
# Clear out stuff we won't use | |
run "rm README" | |
run "rm public/index.html" |
NewerOlder