Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
| #Deploy and rollback on Heroku in staging and production | |
| task :deploy_staging => ['deploy:set_staging_app', 'deploy:push', 'deploy:restart', 'deploy:tag'] | |
| task :deploy_production => ['deploy:set_production_app', 'deploy:push', 'deploy:restart', 'deploy:tag'] | |
| namespace :deploy do | |
| PRODUCTION_APP = 'YOUR_PRODUCTION_APP_NAME_ON_HEROKU' | |
| STAGING_APP = 'YOUR_STAGING_APP_NAME_ON_HEROKU' | |
| task :staging_migrations => [:set_staging_app, :push, :off, :migrate, :restart, :on, :tag] | |
| task :staging_rollback => [:set_staging_app, :off, :push_previous, :restart, :on] |
| #!/usr/bin/env bash | |
| # where do you want couchdb and its deps to be installed | |
| COUCHDB_PREFIX="/opt/couchdb-1.0.1" | |
| # Let's determine the correct arcitecture and choose the installer | |
| if [ "`uname -m`" = "x86_64" ]; then | |
| echo "Using 64-bit installer" | |
| COUCHDB_INSTALLER_DOC_ID="26f246a0fe23d6a53d5326713308f43c" | |
| COUCHDB_INSTALLER_BIN="install-couchdb-1.0.1_rel1-linux-x64.bin" |
| <?php | |
| /* | |
| Template Name: Comment Graph | |
| */ | |
| ?> | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset=utf-8> |
| au BufRead,BufNewFile jquery.*.js set ft=javascript syntax=jquery | |
| set nocompatible | |
| set autoindent | |
| set tabstop=2 | |
| set showmatch | |
| set vb t_vb= | |
| set ruler | |
| set nohls | |
| set incsearch | |
| syntax on |
| #!/usr/bin/env bash | |
| curl -s "http://www.google.com/finance/historical?q=$1&startdate=jan+1&2c+$2&enddate=dec+31%2c+$2&output=csv&histperiod=weekly" \ | |
| | sed -e '1d' \ | |
| | tac \ | |
| | cut -d, -f5 \ | |
| | spark |
| #!/bin/bash | |
| find "$@" -type d -name ".git" -execdir bash -c ' | |
| if [ ! $(git status | grep -o nothing) ] | |
| then | |
| x=$(basename "$PWD") | |
| y=$(dirname "$PWD") | |
| origin_url=$(git config --get remote.origin.url) | |
| echo -e "\e[1;32m${x}\e[0m (${y}) ${origin_url}" >&2 | |
| git status -s >&2 |
| # Set terminal window name to current git repo (and branch) or current directory | |
| git-repo() { | |
| git remote -v | grep '(fetch)' | grep -o "\/[a-z,A-Z,\_,\-]*\." | tail -1 | cut -c 2- | grep -o ^[a-z,A-Z,\_,\-]* | |
| } | |
| git-branch() { | |
| git branch | grep \* | cut -c 3- | |
| } | |
| git-term() { |
You can break these rules if you can talk your pair into agreeing with you.