Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
TESTS = $(shell find test/test.*.js) | |
test: | |
@./test/run.sh $(TESTS) | |
.PHONY: test |
" Name: focus.vim | |
" Author: Alan MacDougall <smoke@alanmacdougall.com> | |
" 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' |
#!/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 |
#!/bin/sh | |
# Extracted from: http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html#usage | |
palette="/tmp/palette.png" | |
filters="fps=15,scale=640:-1:flags=lanczos" | |
ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette | |
ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2 |
# 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. |
# you'd obviously have more settings somewhere | |
set :scm, :git | |
set :repository, "git@github.com: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 |
source "http://rubygems.org/" | |
gem "sinatra", "~> 1.3.0" | |
gem "thin" |