Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
| # you'd obviously have more settings somewhere | |
| set :scm, :git | |
| set :repository, "[email protected]:defunkt/github.git" | |
| set :branch, "origin/master" | |
| set :migrate_target, :current # this tells capistrano where to run the migration. otherwise it would try to use the latest release directory (/path/to/app/releases/2012XXXXXXXXX) | |
| set :use_sudo, false | |
| set :ssh_options, {:forward_agent => true} # so you can checkout the git repo without giving the server access to the repo | |
| set :rails_env, 'production' | |
| # These are here to override the defaults by cap |
| TESTS = $(shell find test/test.*.js) | |
| test: | |
| @./test/run.sh $(TESTS) | |
| .PHONY: test |
| " Name: focus.vim | |
| " Author: Alan MacDougall <[email protected]> | |
| " License: Public Domain | |
| " | |
| " Focus on a single column of text, showing it in a distraction-free format. | |
| " Save this as ~/.vim/scripts/focus.vim (or whatever you please), and invoke | |
| " it with :source <filename>. Of course, you could certainly hook that up to a | |
| " :command, or a macro, or a Vimscript function... | |
| " collapse current splits and divide screen in three |
| ## | |
| # Make Rack look like node. | |
| # | |
| # http://youtu.be/Zp91yUH-zAw | |
| # | |
| # Run like this: | |
| # | |
| # $ unicorn -I. app.ru | |
| require 'node_adapter' |
| source "http://rubygems.org/" | |
| gem "sinatra", "~> 1.3.0" | |
| gem "thin" |
| #!/usr/bin/env ruby | |
| # | |
| # Git commit-msg hook. If your branch name is in the form "username/vod-45-new-feature" | |
| # it automatically adds the prefix "[VOD-45]" to commit | |
| # messages. | |
| # | |
| # Example | |
| # ======= | |
| # | |
| # git checkout -b bob/vod-45-some-cool-feature |
| #!/usr/bin/env rc | |
| if (! ~ $#* 1) { | |
| echo 'Usage: sc <pattern>' | |
| } else { | |
| grep $1: $0 | |
| } | |
| # 100: Continue | |
| # 101: Switching Protocols |
| # Has your OS/FS/disk lost your data? | |
| # cd to the directory containing your project repositories and run the command | |
| # below. (It's long; make sure you get it all.) It finds all of your git repos | |
| # and runs paranoid fscks in them to check their integrity. | |
| (set -e && find . -type d -and -iname '.git' | while read p; do (cd "$(dirname "$p")" && (set -x && git fsck --full --strict)); done) && echo "OK" | |
| # I have 81 git repos in my ~/proj directory and had no errors. |
| #![feature(mpsc_select, box_syntax)] | |
| use std::io; | |
| use std::process::Command; | |
| use std::sync::mpsc::{channel, Receiver, Select}; | |
| use std::string::FromUtf8Error; | |
| use std::thread::spawn; | |
| #[derive(Debug)] | |
| enum PipeError { |