everything's better with a cowsay

This commit is contained in:
Rodolphe Breard 2015-03-18 00:46:14 +01:00
parent 3b71b785a4
commit 8ea82120c6

12
.zshrc
View file

@ -66,7 +66,6 @@ alias df='df -h'
alias weechat='TERM=screen-256color weechat' alias weechat='TERM=screen-256color weechat'
alias lock='xscreensaver-command --lock' alias lock='xscreensaver-command --lock'
hash htop 2>/dev/null && alias top='TERM=screen-256color htop' hash htop 2>/dev/null && alias top='TERM=screen-256color htop'
hash dig 2>/dev/null && alias istheinternetonfire='dig +short txt istheinternetonfire.com'
hash sqlmap 2>/dev/null && alias sqlmap='sqlmap --user-agent="Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"' hash sqlmap 2>/dev/null && alias sqlmap='sqlmap --user-agent="Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"'
hash sqlmap 2>/dev/null && alias sqlmap-tor='sqlmap --tor --tor-type=SOCKS5' hash sqlmap 2>/dev/null && alias sqlmap-tor='sqlmap --tor --tor-type=SOCKS5'
@ -77,6 +76,17 @@ if hash chromium 2>/dev/null; then
} }
fi fi
if hash dig 2>/dev/null; then
istheinternetonfire() {
txt=$(dig +short txt istheinternetonfire.com)
if hash cowsay 2>/dev/null; then
echo "$txt" | cowsay
else
echo "$txt"
fi
}
fi
stop_censorship() { stop_censorship() {
msg="Halte à la censure administrative du web !" msg="Halte à la censure administrative du web !"
for ip in "90.85.16.50" "90.85.16.51" "90.85.16.52" for ip in "90.85.16.50" "90.85.16.51" "90.85.16.52"