Skip to content

Instantly share code, notes, and snippets.

View paulintrognon's full-sized avatar
🍫

Paulin Trognon paulintrognon

🍫
View GitHub Profile
@paulintrognon
paulintrognon / BitBucket Outage Solution
Created February 24, 2015 14:28
Loop of Git Pushes until it works. Written during a BitBucket outage...
typeset -i i=1 START=$(date +%s); until echo Try Number $i... $(( $(date +%s) - $START ))s elapsed so far; git push 2> /dev/null ; do let i++; sleep 1; done; date; echo Done with $i trials - Took $(( $(date +%s) - $START )) seconds