Skip to content

Instantly share code, notes, and snippets.

View dspeller's full-sized avatar

Danielle H. Speller dspeller

View GitHub Profile
@dspeller
dspeller / git-branches-by-commit-date.sh
Created March 11, 2017 03:36 — forked from jasonrudolph/git-branches-by-commit-date.sh
List remote Git branches and the last commit date for each branch. Sort by most recent commit date.
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r
@dspeller
dspeller / install-gist-scripts
Last active March 11, 2017 03:42 — forked from NQNStudios/install-gist-scripts
Manages executable scripts stored in Gists for use on Unix systems.
#!/bin/bash
# First argument: the ID of the Github Gist to clone from
GIST_ID=${1}
# Clone the gist in our bin directory
cd ~/bin
git clone https://gist.github.com/${GIST_ID}.git
# symlink all scripts for global execution