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
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
(* 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
# 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
/* | |
* 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
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
# 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
// make sure curl is installed | |
if (function_exists('curl_init')) { | |
// initialize a new curl resource | |
$ch = curl_init(); | |
// set the url to fetch | |
curl_setopt($ch, CURLOPT_URL, $_GET['tracking_lead_uri']); | |
} |
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
begin | |
open(params[:tracking_lead_uri]) | |
rescue OpenURI::HTTPError | |
puts "Couldn't make your request." | |
end |