]> git.armaanb.net Git - bin.git/commitdiff
add 0x0
authorArmaan Bhojwani <3fb650a9-b47e-4604-a282-1dd91953b2ee@anonaddy.me>
Sat, 28 Nov 2020 22:38:43 +0000 (17:38 -0500)
committerArmaan Bhojwani <3fb650a9-b47e-4604-a282-1dd91953b2ee@anonaddy.me>
Sat, 28 Nov 2020 22:38:43 +0000 (17:38 -0500)
Add simple 0x0 script to make interacting with 0x0.st super easy

0x0 [new file with mode: 0755]

diff --git a/0x0 b/0x0
new file mode 100755 (executable)
index 0000000..dee68b3
--- /dev/null
+++ b/0x0
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+# Makes interacting with the 0x0.st service easy. Just pipe command output
+# into 0x0 or point $0 to a file
+
+input="-"
+
+if [[ -n $1 ]]; then
+  input=$1
+fi
+
+curl -F "file=@${input}" https://0x0.st