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
# RVM bootstrap | |
$:.unshift(File.expand_path("~/.rvm/lib")) | |
require 'rvm/capistrano' | |
set :rvm_ruby_string, '1.8.7' | |
# main details | |
set :application, "fctableros" | |
role :web, "your_web_server_ip_or_domain" | |
role :app, "your_app_server_ip_or_domain" | |
role :db, "your_db_server_ip_or_domain", :primary => true |
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
require "autotest/growl" # only for Mac | |
require "autotest/fsevent" # only for Mac | |
require "autotest/restart" # restart autotest when this file changes | |
# Don't reset terminal when finished test | |
Autotest::Growl::clear_terminal = false # only for Mac | |
Autotest.add_hook :initialize do |autotest| | |
# Ignore the following files |
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
require "autotest/growl" # only for Mac | |
require "autotest/fsevent" # only for Mac | |
require "autotest/restart" # restart autotest when this file changes | |
# Don't reset terminal when finished test | |
Autotest::Growl::clear_terminal = false # only for Mac | |
Autotest.add_hook :initialize do |autotest| | |
# Ignore the following files |
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
/* | |
* Rest Calculator Server | |
* | |
* Based on "Building a Simple Web Service" screencast | |
* from thinkvitamin.com | |
*/ | |
var util = require('util'), | |
http = require('http'); |
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
# Enable Vim mode in ZSH | |
bindkey -v | |
autoload -U edit-command-line | |
zle -N edit-command-line | |
bindkey '^E' edit-command-line # Opens Vim to edit current command line | |
bindkey '^R' history-incremental-search-backward # Perform backward search in command line history | |
bindkey '^S' history-incremental-search-forward # Perform forward search in command line history | |
bindkey '^P' history-search-backward # Go back/search in history (autocomplete) | |
bindkey '^N' history-search-forward # Go forward/search in history (autocomplete) |
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
(* Setup this script to run when a "Pomodoro" activity has finished. It will start either "Pomodoro Break" or "Pomodoro Long Break" when finished *) | |
set activity1 to "Pomodoro Break" | |
set activity2 to "Pomodoro Long Break" | |
set button3 to "Stop Working" | |
set dialogText to "What do you want to do now?" | |
set dialogTitle to "Choose your next step..." |
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
term "screen-256color" | |
defscrollback 10000 | |
bind y eval "writebuf" "exec sh -c 'pbcopy < /tmp/screen-exchange'" |
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
ENV['RAILS_ASSET_ID'] = `git log -1 --pretty=format:"%h"` |
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
require 'benchmark' | |
# Defined method | |
class ExampleA | |
def test | |
10000 * 10000 | |
end | |
end | |
# Method lookup |
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
# Update to the latest version | |
sudo apt-get update && sudo apt-get upgrade && sudo shutdown -r now | |
# Install Chromium | |
sudo apt-add-repository ppa:chromium-daily/dev | |
sudo apt-get update && sudo apt-get install chromium-browser | |
# Install basic tools | |
sudo apt-get install build-essential vim-nox curl git-core subversion openssh-server |