summaryrefslogtreecommitdiff
path: root/zshfunc/sd
diff options
context:
space:
mode:
Diffstat (limited to 'zshfunc/sd')
-rw-r--r--zshfunc/sd8
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
+}