This file contains 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
" basic --------------------------------------------------- {{{ | |
" colors | |
set t_Co=256 | |
syntax on | |
set nocompatible | |
set wrap " for long lines | |
set textwidth=80 " # | |
set formatoptions=qrn1 " # |
This file contains 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
gitc () { | |
if [[ $1 == */* ]]; then | |
git clone https://github.com/$1 $2 | |
else | |
git clone https://github.com/$1/$2 $3 | |
fi | |
} |
This file contains 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
function reel | |
if test -f $argv[1] | |
cd .. | |
else | |
if pwd | grep -q "$argv[1]" | |
set x (dirname $PWD) | |
while test -z (echo (basename $x) | grep "$argv[1]") | |
set x (dirname $x) | |
end | |
cd "$x" |
This file contains 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
" basic --------------------------------------------------- {{{ | |
" colors | |
set t_Co=256 | |
syntax on | |
set nocompatible | |
set wrap " for long lines | |
set textwidth=80 " # | |
set formatoptions=qrn1 " # |
This file contains 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
# $ echo "kermit" | |
# kermit | |
# $ echo "fozzie bear" | |
# fozzie bear | |
# $ echo "miss piggy" | |
# miss piggy | |
# $ fdl 3 | |
# kermit | |
# fozzie bear | |
# miss piggy |
This file contains 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
#dolast - for the lazy | |
# usage: dolast <n> | |
# where <n> is a positive integer representing the number of commands to repeat. | |
# | |
# example: | |
# $ echo "foo" | |
# foo | |
# $ echo "bar" | |
# bar | |
# $ echo "baz" |
This file contains 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
#!/usr/bin/python2.7 | |
import sys, os, time | |
def usage(): | |
print 'Usage:' | |
print ' $ get_time_since [ (-f | --format) "format string"] /path/to/file' | |
sys.exit(0) | |
def get_time_since(event, format_string="%s"): |
This file contains 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
function gitc | |
if set -q argv[2] # two args | |
git clone https://github.com/$argv[1]/$argv[2] | |
else # one arg | |
git clone https://github.com/$argv[1] | |
end | |
end |
This file contains 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 | |
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
RET=0 | |
if [ "$CURRENT_BRANCH" != "gh-pages" ]; then | |
make test | |
RET=$? | |
fi | |
exit $RET |