From: Vincent Le Gallic Date: Mon, 9 Dec 2013 17:16:24 +0000 (+0100) Subject: [bash_aliases] shortcut syncpass X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=212b027741ffed1c32e2455515016d200605ec8b;p=config-20-100.git [bash_aliases] shortcut syncpass --- diff --git a/.bash_aliases b/.bash_aliases index 8bf7f37..ad823aa 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -117,9 +117,6 @@ alias mtr='mtr -t' # Pour que les semaines de cal commencent le Lundi alias cal='ncal -bM' -# pure-ftpd -alias statftp="(cat /var/log/pure-ftpd/transfer.log{,.1}; zcat /var/log/pure-ftpd/*.gz) | awk '{print \$1}' | sort | uniq -c | sort -nr | less" -alias tailftp='tail -n 100 -f /var/log/pure-ftpd/transfer.log | /home/vincent/scripts/ftp/percent_decode.py --color' # +--------+ @@ -164,3 +161,16 @@ alias a♡tv='cvlc udp://@239.231.140.230:1337' # Useless stuff alias jabba='jabba 2>&1 | sed "s/introuvable/jabba/"' + + + +# +-----------+ +# | Shortcuts | +# +-----------+ + +# pure-ftpd +alias statftp="(cat /var/log/pure-ftpd/transfer.log{,.1}; zcat /var/log/pure-ftpd/*.gz) | awk '{print \$1}' | sort | uniq -c | sort -nr | less" +alias tailftp='tail -n 100 -f /var/log/pure-ftpd/transfer.log | /home/vincent/scripts/ftp/percent_decode.py --color' + +# Pour envoyer les passwords de eva à cabal +alias syncpass='if [[ "`hostname`" = "eva" ]]; then scp -o PubkeyAuthentication=no .pass/pss.gpg vincent@cabal.crans.org:.pass/pss.gpg; else echo "Do it on eva"; fi'