diff options
author | Peter Palfrader <peter@palfrader.org> | 2009-05-08 19:03:30 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2009-05-08 19:03:30 +0000 |
commit | fcc04c9c51f229aeaa70f8ccce9f26e2872a35b3 (patch) | |
tree | a37edcf30ecdcd4d472e04da3c285a9d6b7b8dba /zshfunc/sd | |
parent | 5cc06ca537a2f1f9373bfc91dccea38775ac4575 (diff) |
Split out functions
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@388 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'zshfunc/sd')
-rw-r--r-- | zshfunc/sd | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/zshfunc/sd b/zshfunc/sd new file mode 100644 index 0000000..8805b6f --- /dev/null +++ b/zshfunc/sd @@ -0,0 +1,8 @@ +## vim:ft=zsh:foldmethod=marker + +sd() { + fp=$( wget -q -O - http://tor.noreply.org:80/tor/status/authority | \ + awk '$1 == "r" && $2 == "'$1'" {printf "%s===", $3}' | \ + perl -MMIME::Base64 -e "print unpack(\"H*\", decode_base64(<>)),\"\n\"" ) + echo wget -q -O - http://tor.noreply.org:80/tor/server/fp/$fp +} |