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
# Usage: blameline <filename> <line number> | |
function blameline { | |
cmd="git log -u -L $2,$2:$1" | |
echo $cmd | |
$cmd | |
} |
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/env python | |
""" | |
git fuzzy-checkout | |
Same as `git checkout branch`, but with fuzzy matching if checkout fails. | |
Turns `git checkout barnch` into `git checkout branch`, | |
assuming `branch` is a branch. | |
""" | |
import difflib |
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
fft_desc = <<fft | |
FACT!!!: Americans spend 9.4% of their disposable income on food. That is less than any other country in the world. | |
CONSEQUENCES!!!: Obesity, type II diabetes, commodification of food, factory farming, corn syrup, processing, packaging, pollution, pesticides, fertilizers, and tasteless food-like products. | |
fft |
NewerOlder