From 4d9ce0fb3cb85fe5d41826d29c2fdebbacfe56db Mon Sep 17 00:00:00 2001 From: stanley lieber Date: Wed, 18 Sep 2013 15:03:50 -0400 Subject: add /rc/bin/ok, tool for okturing.com pastebin --- rc/bin/ok | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 rc/bin/ok (limited to 'rc') diff --git a/rc/bin/ok b/rc/bin/ok new file mode 100755 index 000000000..c12835cc6 --- /dev/null +++ b/rc/bin/ok @@ -0,0 +1,8 @@ +#!/bin/rc +if(~ $#* 0) + file=/fd/0 +if not + file=$1 +hpost -u http://okturing.com -p / a_body@$file submit:submit fake:fake a_func:add_post url: | +grep -e '\/body\"' | +sed 1q | sed 's/^.*href=\"//g; s/body\".*$/body/g; s/^/http:\/\/okturing.com/g' -- cgit v1.2.3