X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=brc;h=96e66a883d647c5e69538b53e96b704814f1f14a;hb=15f043c2c297176bd623d8a8602e2dc5d67eacd6;hp=53f8c5b0074cc3cf62650238027c4684fea347de;hpb=87f900c44182d9175700349890c24440a740c121;p=distro-setup diff --git a/brc b/brc index 53f8c5b..96e66a8 100644 --- a/brc +++ b/brc @@ -558,7 +558,7 @@ fa() { } faf() { # find all files - find -L $1 -type f -not \( -name .svn -prune -o -name .git -prune \ + find -L $1 -not \( -name .svn -prune -o -name .git -prune \ -o -name .hg -prune -o -name .editor-backups -prune \ -o -name .undo-tree-history -prune \) 2>/dev/null } @@ -951,6 +951,10 @@ else } fi +ipdrop() { + s iptables -A INPUT -s $1 -j DROP +} + net-dev-info() { e "lspci -nnk|gr -iA2 net" lspci -nnk|gr -iA2 net @@ -1527,7 +1531,7 @@ t() { declare -gi _seq; _seq+=1 echo "test body" | m mail -s "test mail from $HOSTNAME, $_seq" "${@:-root@localhost}" # for testing to send from an external address, you can do for example - # -aFrom:ian@iank.bid web-6fnbs@mail-tester.com + # -fian@iank.bid -aFrom:ian@iank.bid web-6fnbs@mail-tester.com # note in exim, you can retry a deferred message # s exim -M MSG_ID # MSG_ID is in /var/log/exim4/mainlog, looks like 1ccdnD-0001nh-EN