gem install rails --pre
rails new my_app -T
echo "*~" >> ~/.gitignore | |
echo "*.sw?" >> ~/.gitignore | |
git config --global core.excludesfile ~/.gitignore | |
git config --global alias.st status | |
git config --global alias.ci commit | |
git config --global alias.co checkout | |
git config --global alias.br branch | |
git config --global user.name "nicola" |
#!/usr/bin/env ruby | |
# | |
# An example hook script that is called after a successful | |
# commit is made. | |
# | |
# To enable this hook, rename this file to "post-commit". | |
message = `git log --pretty=format:'%an: %s (%h)' -n 1` | |
require 'rubygems' | |
require 'twitter' |
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) | |
#then | |
source ~/.rvm/scripts/rvm #in .zshrc | |
#then restart console | |
rvm list known | |
rvm install 1.9.3 | |
rvm use 1.9.3 --default |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<!-- saved from url=(0052)http://martinfowler.com/articles/nosqlKeyPoints.html --> | |
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>NoSQL Key Points</title> | |
<!--<link href="./NoSQL Key Points_files/nosql-key-points.css" rel="stylesheet" type="text/css">--> | |
</head> | |
<style> | |
body, html { width:100%; background: #111; color: #eee; | |
font-family: arial; | |
line-height: 1.5em; |
rspec -X `git st | grep _spec.rb | awk '{print $3}'` |
lsof +L1 |
ssh-add your-key | |
ssh -A -t user@host1 ssh -A -t user@host2 |
# C-b is not acceptable -- Vim uses it | |
set-option -g prefix C-a | |
bind-key C-a last-window | |
# Start numbering at 1 | |
set -g base-index 1 | |
# Allows for faster key repetition | |
set -s escape-time 0 |