aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpomf4
1 files changed, 4 insertions, 0 deletions
diff --git a/pomf b/pomf
new file mode 100755
index 0000000..051a0da
--- /dev/null
+++ b/pomf
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+upload=$(curl -sf -F "files[]=@\"$1\"" http://pomf.se/upload.php)
+geturl=$(jshon -e files -e 0 -e url -u <<< $upload)
+printf "%s/%s\n" "http://a.pomf.se" "$geturl"