Skip to content

Instantly share code, notes, and snippets.

Joseph Huttner jhuttner

Block or report user

Report or block jhuttner

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 keybase.md

Keybase proof

I hereby claim:

  • I am jhuttner on github.
  • I am jhuttner (https://keybase.io/jhuttner) on keybase.
  • I have a public key whose fingerprint is 29BC 9453 851C 2D7C 6505 1901 32F2 1478 286C 071A

To claim this, I am signing this object:

@jhuttner
jhuttner / git-stats
Created Mar 20, 2014
Show commits stats by author
View git-stats
#!/bin/bash
comm -12 <(git ls-files | sort -n) <(find . -type f | sed -e 's/^\.\///g' | sort -n) | xargs -I {} git blame {} | perl -n -e '/^.*\((.*?)\s*[\d]{4}-[\d]{2}/; print $1,"\n"' | sort -f | uniq -c | sort -n
@jhuttner
jhuttner / git-who-owns-what
Last active Aug 29, 2015
git-who-owns-what
View git-who-owns-what
#!/bin/bash
# git-who-owns-what
#
# Requires: git-remote-authors: https://gist.github.com/jhuttner/8795653
#
# Print the branches that each user was the last committer for.
#
# Place this script in your PATH, chmod +x it, and git will allow you to magically do:
# $ git who-owns-what
@jhuttner
jhuttner / git-remote-authors
Last active Aug 29, 2015
git-remote-authors
View git-remote-authors
#!/bin/bash
# git-remote-authors
#
# Print recent commit info for all remote branches.
#
# Place this script in your PATH, chmod +x it, and git will allow you to magically do:
# $ git remote-authors (num_commits_to_lookback)
#
# Author: devops@appnexus.com
View git-recent
#!/bin/bash
# git-recent
#
# Call 'git fetch' and log all remote branches that have any activity
# in the past n days (default=3).
#
# Place this script in your PATH, chmod +x it, and git will allow you to magically do:
# $ git recent (days)
#
View gist:6246681
[jhuttner@02.jhuttner.dev.lax1 tmux-1.8]$ cat /home/jhuttner/.tmux.conf
setenv SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock
# Make it use C-a, similar to screen..
#unbind C-b
#unbind l
#set -g prefix C-a
#bind-key C-a last-window
#unbind C-b
View gist:6246611
setenv SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock
# Make it use C-a, similar to screen..
#unbind C-b
#unbind l
#set -g prefix C-a
#bind-key C-a last-window
#unbind C-b
#set -g prefix C-g
@jhuttner
jhuttner / tag test
Created Jun 30, 2012
Refs are the same.
View tag test
The refs for tags are the same.
01:tagtest(master) jhuttner$ git remote -v
origin git@github.com:jhuttner/tagtest.git (fetch)
origin git@github.com:jhuttner/tagtest.git (push)
01:tagtest(master) jhuttner$ git ls-files
foo.txt
01:tagtest(master) jhuttner$ echo "barbar" >> foo.txt
01:tagtest(master) jhuttner$ git add foo.txt
01:tagtest(master) jhuttner$ git commit -m "Add barbar line."
@jhuttner
jhuttner / git-dropbox.py
Created Jun 5, 2012
Easily create Dropbox remotes for your Git repositories.
View git-dropbox.py
#!/usr/bin/env python
import getpass
import os
import subprocess
import sys
###############################################################################
#
View gist:2592249
#!./svn-branch-export.pl make
# this line tells emacs to highlight the file as a -*-shell-script-*-
#
# This file defines variables used to make the history.
# Please confirm the values below before running the script.
#
#dump_file "" # dump read from standard input
# Used to display better progress information:
You can’t perform that action at this time.