From 212b027741ffed1c32e2455515016d200605ec8b Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Mon, 9 Dec 2013 18:16:24 +0100 Subject: [PATCH] =?utf8?q?[bash=5Faliases]=C2=A0shortcut=20syncpass?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .bash_aliases | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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' -- 2.39.2