Shows how many commits ahead and behind git remotes are.
How to run:
bash remote_status.sh [remote]
The remote defaults to origin
I hereby claim:
To claim this, I am signing this object:
killall gpg-agent && gpg-agent --daemon --use-standard-socket --pinentry-program /usr/local/bin/pinentry |
// ==UserScript== | |
// @name Bursch Blog Cleaner | |
// @version 1.0 | |
// @description This makes Mr.Bursch's blog legible! | |
// @author Aaron Janse | |
// @match http://mrbursch.blogspot.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { |
// from http://stackoverflow.com/a/7869457 | |
// converted to js code | |
// x and y are the angles in radians | |
function getDifference(x, y) { | |
var a = x-y; | |
a = (function(i, j) {return i-Math.floor(i/j)*j})(a+Math.PI, Math.PI*2); // (a+180) % 360; this ensures the correct sign | |
a -= Math.PI; | |
return a; | |
} |