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
[alias] | |
co = checkout | |
st = status | |
br = branch | |
re = rebase | |
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short | |
cat = cat-file -t | |
type = cat-file -t | |
dump = cat-file -p | |
[color "branch"] |
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
#! /bin/sh | |
# For octopress/heroku: generate site, deploy, and tag as "deploy-yyyy-mm-dd" | |
# This allows you to keep your public/ assets out of git, | |
# and only add them just before deploying | |
BRANCH=`git symbolic-ref -q HEAD | sed 's/refs\/heads\///'` | |
SHA=`git rev-parse --short HEAD` |
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
#! /bin/bash | |
# First you need to have the "pgbackups" addon in your heroku app, for example: | |
# $ heroku addons:add pgbackups:auto-week | |
# your database name here | |
DB_NAME='foobar_development' | |
# grab the data directory for postgres from the running process | |
DATA_DIR=`ps ax |grep [/]post | sed "s/^.*\-D //" | sed "s/ .*$//"` |
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
// includes bindings for fetching/fetched | |
PaginatedCollection = Backbone.Collection.extend({ | |
initialize: function() { | |
_.bindAll(this, 'parse', 'url', 'pageInfo', 'nextPage', 'previousPage'); | |
this.page = 1; | |
}, | |
fetch: function(options) { | |
options || (options = {}); | |
this.trigger("fetching"); |