Skip to content

Instantly share code, notes, and snippets.

@joeshaw
joeshaw / addnicks.js
Created February 4, 2016 15:06
Display slack handles next to real names
function addNicks() {
$(".message_sender").map(function() {
var name = $(this).data("x-name");
if (!name) {
name = $(this).text();
$(this).data("x-name", name);
}
var href = $(this).attr("href");
if (href) {
var nick = href.slice(6);
@joeshaw
joeshaw / gist:1efa84954539eb72d66f7520a4ca9569
Last active September 13, 2016 18:41
partial .gitconfig
[alias]
find = !sh -c 'git ls-files |grep --color=auto -i "$@" |less -FRSX' -
fixup = "!f() { TARGET=$(git rev-parse "$1"); git commit --fixup=$TARGET ${@:2} && EDITOR=true git rebase -i --autostash --autosquash $TARGET^; }; f"
squash = "!f() { TARGET=$(git rev-parse "$1"); git commit --squash=$TARGET ${@:2} && git rebase -i --autostash --autosquash $TARGET^; }; f"
ri = rebase --interactive --autosquash --autostash
lt = log --graph --pretty=changes
ll = log --numstat --pretty=changes
ds = diff --staged
ego = shortlog -s -n --no-merges
pr = pull-request