These commands are good as of 2010-11-18.
Homebrew http://mxcl.github.com/homebrew/
/usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
http://developer.apple.com/technology/xcode.html