Skip to content

Instantly share code, notes, and snippets.

@terraboops
terraboops / last-git-branch-update.sh
Last active December 18, 2015 22:09
List all branches and date of latest commit for a repo. Great for coordinating restoration of distributed backups after git remote data loss.
git for-each-ref --shell --format='echo ${PWD##*/} - %(refname); git show --format="%ci %cr" %(refname) | head -n 1' refs/heads/ | bash
@terraboops
terraboops / .bash_profile
Created February 27, 2013 18:28
Bash Alias - Ignore SSL for Git command
alias nossl="env GIT_SSL_NO_VERIFY=true"
@terraboops
terraboops / fizzBuzz.js
Last active December 9, 2015 17:28
JS FizzBuzz, Generalized
//Factory for Test Conditions
function testFactor(factor, msg) {
"use strict";
return function(i){
var output = "";
if(i%factor===0) {
output = msg;
}
return output;
};