Skip to content

Instantly share code, notes, and snippets.

View abritinthebay's full-sized avatar

Gregory Wild-Smith abritinthebay

View GitHub Profile
@abritinthebay
abritinthebay / consoleColors.js
Last active April 13, 2024 14:03
The various escape codes you can use to color output to StdOut from Node JS
// Colors reference
// You can use the following as so:
// console.log(colorCode, data);
// console.log(`${colorCode}some colorful text string${resetCode} rest of string in normal color`);
//
// ... and so on.
export const reset = "\x1b[0m"
export const bright = "\x1b[1m"
export const dim = "\x1b[2m"
@abritinthebay
abritinthebay / git-remove-remote-merged-branches.sh
Last active March 2, 2023 21:03
How to delete merged git remote branches (git-flow safe)
git fetch --prune |
git branch -r --merged |
grep origin |
grep -v '>' |
grep -v master |
grep -v develop |
sed -E "s|^ *origin/||g" |
xargs git push origin --delete
@abritinthebay
abritinthebay / CLA.md
Created August 14, 2018 06:04
Individual Contributor License Agreement

Individual Contributor License Agreement

Thank you for your interest in contributing to ("We" or "Us").

This contributor agreement ("Agreement") documents the rights granted by contributors to Us. To make this document effective, please sign it and send it to Us by electronic submission, following the instructions at foo. This is a legally binding document, so please read it carefully before agreeing to it. The Agreement may cover more than one software project managed by Us.

1. Definitions

"You" means the individual who Submits a Contribution to Us.

@abritinthebay
abritinthebay / globe.js
Created February 25, 2014 18:20
Spinning JS globe
eval(z='p="<"+"pre>"/* ,.oq#+ ,._, */;for(y in n="zw24l6k\
4e3t4jnt4qj24xh2 x/* =<,m#F^ A W###q. */42kty24wrt413n243n\
9h243pdxt41csb yz/* #K q##H######Am */43iyb6k43pk7243nm\
r24".split(4)){/* dP cpq#q##########b, */for(a in t=pars\
eInt(n[y],36)+/* p##@###YG=[#######y */(e=x=r=[]))for\
(r=!r,i=0;t[a/* d#qg `*PWo##q#######D */]>i;i+=.05)wi\
th(Math)x-= /* aem1k.com Q###KWR#### W[ */.05,0>cos(o=\
new Date/1e3/* .Q#########Md#.###OP A@ , */+x/PI)&&(e[~\
~(32*sin(o)*/* , (W#####Xx######.P^ T % */sin(.5+y/7))\
+60] =-~ r);/* #y `^TqW####P###BP */for(x=0;122>\