Created
December 20, 2017 10:37
-
-
Save mbaldessari/917c31bc01565f99eb1629d019e5d657 to your computer and use it in GitHub Desktop.
Useful TripleO/OSP aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ospgrep() { | |
echo "$*" | |
grep -E "\s\b(E[rR]{2}:?|alert|Traceback|TRACE|crit|fatal|HANDLER|TASK|PLAY|Unexpected|FAIL|[Ff]ail|denied|non-zero|[Tt]ime[d\s]?out|UNCAUGHT|EXCEPTION|Unknown|[Aa]ssertion|inuse)" $* | |
} | |
sprunge() { | |
if [ -n "$1" ]; then | |
curl -F 'sprunge=<-' "http://sprunge.us" <"$1" | |
else | |
curl -F 'sprunge=<-' "http://sprunge.us" | |
fi | |
} | |
alias ANSIBLE_WTF='python -c '\''import sys;print sys.stdin.read().decode("unicode_escape")'\'' | sed '\''s/\\u001b/\x1b/g'\''' | |
alias RABBIT='docker exec -it $(sudo docker ps -f name=rabbitmq-bundle -q) /bin/bash' | |
alias GALERA='docker exec -it $(sudo docker ps -f name=galera-bundle -q) /bin/bash' | |
alias REDIS='docker exec -it $(sudo docker ps -f name=redis-bundle -q) /bin/bash' | |
alias HEAT_FAIL='grep -i status_code /var/lib/heat-config/deployed/*' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment