start new:
tmux
start new with session name:
tmux new -s myname
| Capybara.add_selector :record do | |
| xpath { |record| XPath.css("#" + ActionController::RecordIdentifier.dom_id(record)) } | |
| match { |record| record.is_a?(ActiveRecord::Base) } | |
| end |
| cd /tmp && curl -O ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2 && bunzip2 -c vim-7.3.tar.bz2 | tar -xf - && cd vim73 && ./configure --prefix=/tmp && make install && echo PATH='$PATH:/tmp/bin/' > path && source path |
| #!/usr/bin/env bash | |
| curl https://s3.amazonaws.com/heroku-jvm-buildpack-vi/vim-7.3.tar.gz --output vim.tar.gz | |
| mkdir vim && tar xzvf vim.tar.gz -C vim | |
| export PATH=$PATH:/app/vim/bin |
sudo apt-get install vim tmux git curl| # config/environments/production.rb | |
| # We're on Heroku, just output straight to STDOUT | |
| # This is required because we're using Unicorn: https://github.com/ryanb/cancan/issues/511#issuecomment-3643266 | |
| config.logger = Logger.new(STDOUT) | |
| config.logger.level = Logger.const_get(ENV['LOG_LEVEL'] ? ENV['LOG_LEVEL'].upcase : 'INFO') |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| brew update | |
| brew versions FORMULA | |
| cd `brew --prefix` | |
| git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions" | |
| brew install FORMULA | |
| brew switch FORMULA VERSION | |
| git checkout -- Library/Formula/FORMULA.rb # reset formula | |
| ## Example: Using Subversion 1.6.17 | |
| # |
| web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb |
| # Update, upgrade and install development tools: | |
| apt-get update | |
| apt-get -y upgrade | |
| apt-get -y install build-essential | |
| apt-get -y install git-core | |
| # Install rbenv | |
| git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
| # Add rbenv to the path: |