gem install rails --pre
rails new my_app -T
# Apt-install various things necessary for Ruby, guest additions, | |
# etc., and remove optional things to trim down the machine. | |
apt-get -y update | |
apt-get -y remove apparmor | |
apt-get -y install linux-headers-$(uname -r) build-essential | |
apt-get -y install zlib1g zlib1g-dev libxml2 libxml2-dev libxslt-dev libssl-dev openssl libreadline5-dev | |
apt-get clean | |
# Remove this file to avoid dhclient issues with networking | |
rm -f /etc/udev/rules.d/70-persistent-net.rules |
class Fixnum | |
def seconds | |
self | |
end | |
def minutes | |
self * 60 | |
end | |
def hours |
# Have you ever had to sleep() in Capybara-WebKit to wait for AJAX and/or CSS animations? | |
describe 'Modal' do | |
should 'display login errors' do | |
visit root_path | |
click_link 'My HomeMarks' | |
within '#login_area' do | |
fill_in 'email', with: '[email protected]' | |
fill_in 'password', with: 'test' |
-- open terminal sessions | |
tell application "iTerm 2" | |
activate | |
set myterm to (make new terminal) | |
tell myterm | |
-- start mongo | |
launch session "Default" |
# -*- encoding : utf-8 -*- | |
# Rafael Lima (http://rafael.adm.br) | |
# License: http://creativecommons.org/licenses/by/2.5/ | |
# | |
# ATTENTION: This is a initial work, use it at your own risk! | |
# | |
# Usage: | |
# $ APP_NAME=myappname rake heroku:migrate_from_bamboo_to_cedar |