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
@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
@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-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
We couldn’t find that file to show.
View gist:564503
This is for the VIMers, the SVNers, the hundred dollar billas.
View datetimepicker_issue56.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Adding a Timepicker to jQuery UI Datepicker</title>
<meta name="Description" content="jQuery Timepicker Addon. Add a timepicker to your jQuery UI Datepicker. With options to show only time, format time, and much more." />
<meta name="Keywords" content="jQuery, UI, datepicker, timepicker, datetime, time, format" />
<link rel="stylesheet" media="all" type="text/css" href="http://trentrichardson.com/examples/timepicker/css/ui-lightness/jquery-ui-1.8.6.custom.css" />
View gist:837205
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = blue bold
View unbind.js
var unbind = function($tab, by_type) {
/*
* var types = {
* 'click': ['#selector_one', '#selector_two'],
* 'delegate': ['#selector_three'],
* 'live': ['#selector_four']
* }
* unbind($geoTab, types);
*/
for (var i in by_type) {
@jhuttner
jhuttner / reconnect.sh
Created May 27, 2011
Make Juniper Network Connect suck less
View reconnect.sh
#!/bin/bash
CNT=`ps -ef | grep -e Network | grep -v grep | wc -l`
if [ $CNT -eq 1 ]; then
kill `ps -ef | grep -e Network | grep -v grep | awk '{print $2}'`
fi
/Applications/Network\ Connect.app/Contents/MacOS/Network\ Connect &
You can’t perform that action at this time.