- Know Ruby First: http://www.poodr.info/ (quick Ruby OO read)
- Rails: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book (don't just read it, DO IT, twice)
- Rspec: https://leanpub.com/everydayrailsrspec (Rspec is used in the tutorial, but other aspects are covered here)
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 -v --HEAD fishfish | |
vi ~/.config/fish/config.fish | |
# and add this: http://notsnippets.tumblr.com/post/894091013/fish-function-of-the-day-prompt-with-git-branch | |
# then type fish and have fun. |
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
require 'spec_helper' | |
include Rack::Test::Methods | |
def app | |
Rails.application | |
end | |
describe CuuidsController do |
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
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
# $ cd ~ | |
# $ wget https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh -O .git-prompt.sh | |
# Setup git auto-complete and branch | |
source .git-prompt.sh | |
# curl https://raw.github.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash | |
. ~/.git-completion.bash | |
if [ -f $(brew --prefix)/etc/bash_completion ]; then |
- http://docs.mongodb.org/ecosystem/tutorial/getting-started-with-ruby-on-rails-3/
- https://github.com/tyrauber/mongodb-rails3-tutorial
- http://asciicasts.com/episodes/238-mongoid
- http://railscasts.com/episodes/238-mongoid
- http://mongoid.org/
- https://devcenter.heroku.com/articles/mongohq
- https://github.com/mongoid/echo
- https://addons.heroku.com/mongohq
Examples of superb Data UX on the web
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
[mysqld] | |
socket=/var/lib/mysql/mysql.sock | |
############### | |
## query log # | |
############### | |
# < 5.1.6 format turn on general log and accepts a path | |
# log = /usr/local/mysql/data/queries.log | |
# > 5.1.6 |
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/bash | |
# | |
# (1) copy to: ~/bin/ssh-host-color | |
# (2) set: alias ssh=~/bin/ssh-host-color | |
# | |
# Inspired from http://talkfast.org/2011/01/10/ssh-host-color | |
# Fork from https://gist.github.com/773849 | |
# | |
set_term_bgcolor(){ |
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
# this script started the remote rails app ready to attach a rubymine remote debugging session | |
# see: http://www.jetbrains.com/ruby/webhelp/remote-debugging.html | |
PATH_TO_RAILS="/path/to/rails/web/root" | |
echo "removing existing debug gems and intalling rubymine debug gems" | |
echo | |
sudo gem uninstall ruby-debug-base -aIx | |
sudo gem install ruby-debug-base --pre --no-rdoc --no-ri | |
sudo gem uninstall ruby-debug-ide -aIx |