This file contains hidden or 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
| # 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 |
This file contains hidden or 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
| You can specify the installation path with --path: | |
| bundle install --path= './gems/' | |
| This is a remembered option, so you only need to specify it the first time. |
This file contains hidden or 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
| module TagLib | |
| module ClassMethods | |
| def find_by_tags() | |
| # ... | |
| end | |
| end | |
| module InstanceMethods | |
| def tags() |
This file contains hidden or 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
| class Fixnum | |
| def seconds | |
| self | |
| end | |
| def minutes | |
| self * 60 | |
| end | |
| def hours |
This file contains hidden or 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
| # 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: 'will@not.work' | |
| fill_in 'password', with: 'test' |
This file contains hidden or 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
| -- open terminal sessions | |
| tell application "iTerm 2" | |
| activate | |
| set myterm to (make new terminal) | |
| tell myterm | |
| -- start mongo | |
| launch session "Default" |
This file contains hidden or 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
| # -*- 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 |