Skip to content

Instantly share code, notes, and snippets.

View jmccay-work's full-sized avatar

jmccay-work

View GitHub Profile
@jmccay-work
jmccay-work / git-branches-by-commit-date.sh
Last active December 22, 2023 23:36 — forked from jasonrudolph/git-branches-by-commit-date.sh
List remote Git branches and the last commit date for each branch. Sort by oldest commit date.
# Credit https://gist.github.com/jasonrudolph/1810768
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;
do printf "%-40s\\t%20s\\n" $branch "`git show --format="%ci %cr" $branch | head -n 1`";
done | sort -k 2
@jmccay-work
jmccay-work / base64.js
Last active March 10, 2022 15:03 — forked from chrisveness/base64.js
Encode/decode ASCII string to/from base64
/**
* base64.js
* Original author: Chris Veness
* Repository: https://gist.github.com/chrisveness/e121cffb51481bd1c142
* License: MIT (According to a comment).
*
* 03/09/2022 JLM Updated to ES6 and strict.
*/
/**