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
brew install openssl | |
brew install ruby-build | |
brew install rbenv | |
export CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl`" | |
rbenv install 2.0.0-p0 | |
rbenv rehash | |
rbenv global 2.0.0-p0 | |
gem install bundler | |
gem install rails -v 4.0.0.beta1 --no-ri --no-rdoc | |
rbenv rehash |
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
Install Xcode from App Store | |
- install command line tools from Xcode preferences | |
Get homebrew: ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go) | |
- brew doctor | |
brew install hg | |
brew install git | |
brew install nodejs | |
brew install rbenv | |
brew install ruby-build |
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/ruby | |
while (true) | |
f = IO.popen('netstat -anp udp') | |
found = false | |
while (line = f.gets) | |
linesplit = line.split | |
if (/udp/ =~ linesplit[0]) | |
local = linesplit[3] | |
foreign = linesplit[4] |
NewerOlder