First let's install Guard: https://github.com/guard/guard
gem install guard
guard init
gem install rb-fsevent
gem install growl
There are 2 commands to generate the SSH key, one creates a RSA encryption and the other creates a DSA encryption: | |
RSA: | |
ssh-keygen -t rsa | |
DSA: | |
ssh-keygen -t dsa |
Commands to create larger EBS filesystem then came: | |
First choose your AMI - you should know that. | |
# check information on you AMI like size of root mount. | |
ec2-describe-images <ami-xxxxxxxx> | |
# Start a new server based on the ami with a 30GB size root mount | |
ec2-run-instances --key <KEY RING NAME> --block-device-mapping /dev/sda1=:30 <ami-xxxxxxxx> |
Decided to get started using RVM on my Mac, unfortunately, right before continuing development on an otherwise sturdy app. | |
Upon start-up, there were errors in the log starting with | |
/!\ FAILSAFE /!\ Sat Dec 11 17:17:47 -0600 2010 | |
Status: 500 Internal Server Error | |
uninitialized constant MysqlCompat::MysqlRes | |
/Users/username/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:440:in `load_missing_constant' | |
/Users/username/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in `const_missing' |
gem install guard
guard init
gem install rb-fsevent
gem install growl
The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.
You're probably aren't going to take the time to read this screencast if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.
# mercurial (hg) | |
alias hl='hg pull' | |
alias hp='hg push' | |
alias hd='hg diff' | |
alias hc='hg commit' | |
alias hco='hg checkout' | |
alias hb='hg branch' | |
alias hs='hg status' | |
alias ha='hg add .' |
# git | |
alias gl='git pull' | |
alias gp='git push' | |
alias gpom='git push origin master' | |
alias gpos='git push origin staging' | |
alias push='git co master ; git push origin master ; git co develop ; git push origin develop' | |
alias pull='git co master ; git pull origin master ; git co develop ; git pull origin develop' | |
alias gd='git diff' | |
alias gc='git commit' | |
alias gca='git commit -a' |
installing Firefox on headless Ubuntu: | |
http://notes.hemju.com/notes/rails-cucumber-install-headless-firefox-on-ubuntu | |
Running Firefox on headless Ubuntu with selenium: | |
http://markgandolfo.com/?p=47 | |
Switching from Webrat to Capybara: | |
http://cakebaker.42dh.com/2010/09/19/cucumber-switching-from-webrat-to-capybara/ |
Dir.glob('app/views/**/*.rhtml').each do |file| | |
puts `git mv #{file} #{file.gsub(/\.rhtml$/, '.erb')}` | |
end |