(from a scratch install). Kinda, I imported my user home (~) from a Time Machine backup.
sudo mkdir /usr/local
sudo chown -R `whoami` /usr/local
curl -L http://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C /usr/local
sudo apt-get install build-essential libsqlite3-dev
sudo apt-get install ruby1.9.1
wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.6.tgz
tar -zxf rubygems-1.3.6.tgz
cd rubygems-1.3.6
sudo ruby setup.rb
sudo gem install tzinfo builder memcache-client rack rack-test rack-mount erubis mail text-format thor bundler i18n sqlite3-ruby
sudo gem install rails --pre
These are some notes on infrastructure & deployment.
def tip(msg); puts; puts msg; puts "-"*100; end | |
# | |
# 30 Ruby 1.9 Tips, Tricks & Features: | |
# http://www.igvita.com/2011/02/03/new-ruby-19-features-tips-tricks/ | |
# | |
tip "Upgrading to Ruby 1.9 is simple: rvm install 1.9.2 && rvm --default 1.9.2" | |
tip "Ruby 1.9 supports named captures in regular expressions!" |
# Barcode generation in Windows JScript | |
number = WSHInputBox('Consignment Barcodes', 'How many barcodes do you want to generate?', '1') | |
number = parseInt(number) | |
if number >= 0 | |
number += 1 | |
else | |
return |
{ | |
"classification_set":{ | |
"name":"Florida and Georgia Cities", | |
"description":"List of serviceable cities in Florida and Georgia", | |
"created_at":"2012-04-24T08:59:35Z", | |
"updated_at":"2012-04-24T08:59:50Z", | |
"items":[ | |
{ | |
"label":"Florida", | |
"value":"Florida", |