add cloogle client
authorMart Lubbers <mart@martlubbers.net>
Fri, 12 May 2017 07:48:09 +0000 (09:48 +0200)
committerMart Lubbers <mart@martlubbers.net>
Fri, 12 May 2017 07:48:09 +0000 (09:48 +0200)
x/.local/bin/cloo.gl [new file with mode: 0755]

diff --git a/x/.local/bin/cloo.gl b/x/.local/bin/cloo.gl
new file mode 100755 (executable)
index 0000000..e9abf88
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+perl -pe 's/([^a-zA-Z0-9_.!~*()'\''-])/sprintf("%%%02X",ord($1))/ge' |
+       xargs -I{} curl -X POST -d "type=regular&token=a&url={}" http://cloo.gl