Skip to content

Instantly share code, notes, and snippets.

@filipenf
Created March 30, 2016 20:20
Show Gist options
  • Save filipenf/96e55bc14212398e8a6db252e19dcb5c to your computer and use it in GitHub Desktop.
Save filipenf/96e55bc14212398e8a6db252e19dcb5c to your computer and use it in GitHub Desktop.
function retry-ssh() {
ssh $@
while [ $? -ne 0 ]; do
sleep 3;
ssh $@;
done
}
function ansiblify() {
echo $1 | tr '.-' '_'
}
function cleanBarCode {
echo $1 | tr -d '. '
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment