Skip to content

Instantly share code, notes, and snippets.

Joe Shaw joeshaw

Block or report user

Report or block joeshaw

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:1efa84954539eb72d66f7520a4ca9569
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
joeshaw / addnicks.js
Created Feb 4, 2016
Display slack handles next to real names
View addnicks.js
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 / gist:1943da15f4d799f2e729
Created Nov 10, 2015
Onename Verification Gist
View gist:1943da15f4d799f2e729
Verifying that +joeshaw is my blockchain ID.
joeshaw / slack-nicknames.js
Created Jul 16, 2015
Using my shitty javascript skills to add Slack nicks to real names
View slack-nicknames.js
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);
import datetime
def _parse_date(d):
if isinstance(d,
return d
elif isinstance(d, datetime.datetime):
return datetime.datetime.strptime(d, '%Y-%m-%d').date()

Keybase proof

I hereby claim:

  • I am joeshaw on github.
  • I am joeshaw ( on keybase.
  • I have a public key whose fingerprint is BA36 55E3 D96B C66F 9906 3967 C6AF 28BC 42DD 4DE2

To claim this, I am signing this object:

View gist:6104594
$ python
Protocol Buffer (fast)
Protocol Buffer (standard)
joeshaw / monitrc
Created Sep 20, 2011
monit configuration
View monitrc
set daemon 10
set logfile /var/log/monit.log
set statefile /var/lib/monit/monit.state
set alert not { nonexist, action, instance }
include /etc/monit/conf.d/*
joeshaw /
Created Sep 20, 2011
super-hacky flask proxy
# coding:utf-8
# Copyright 2011 litl, LLC. All Rights Reserved.
import httplib
import re
import urllib
import urlparse
from flask import Blueprint, request, Response, url_for
from werkzeug.datastructures import Headers
View gist:1085484
Process: conftest [96252]
Path: /private/tmp/homebrew-glib-2.28.7-UJKs/glib-2.28.7/conftest
Identifier: conftest
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: sh [96251]
Date/Time: 2011-07-15 16:19:15.229 -0400
OS Version: Mac OS X 10.6.8 (10K540)
Report Version: 6
You can’t perform that action at this time.