aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-05-05 18:29:25 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-05-05 18:29:25 +0200
commitfff1edbd1a61c6a47f3f4a3044fcb2fdecd05b04 (patch)
treebafa44b8f1de42cbdf21abf3f334a542e3d8caf0
parenta1ba95b12951596993a4aff14f02a9e6ccf7a1d4 (diff)
downloadbin-fff1edbd1a61c6a47f3f4a3044fcb2fdecd05b04.tar.xz
Drop pomf scripts
They've been having issues, and I have issues with their no-scripts message. Enable JavaScript you fucking autist neckbeard, it's not gonna hurt you
-rwxr-xr-xpomf7
-rwxr-xr-xscrotpomf.bash29
2 files changed, 0 insertions, 36 deletions
diff --git a/pomf b/pomf
deleted file mode 100755
index 9c2e26d..0000000
--- a/pomf
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/bin/env bash
-
-set -o errexit
-
-upload=$(curl -sf -F "files[]=@\"$1\"" https://pomf.se/upload.php)
-geturl=$(jshon -e files -e 0 -e url -u <<< $upload)
-printf "%s/%s\n" "https://a.pomf.se" "$geturl"
diff --git a/scrotpomf.bash b/scrotpomf.bash
deleted file mode 100755
index 518998b..0000000
--- a/scrotpomf.bash
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env bash
-
-set -o errexit
-
-SCROTARGS=()
-while (( "$#" )); do
- SCROTARGS+=($1)
- shift
-done
-
-# take the shot
-FILE="$(scrot ${SCROTARGS[@]} -e 'echo -n $f')"
-
-# upload it and grab the URL
-printf "Uploading scrot\n"
-JSON="$(curl -sf -F "files[]=@$FILE" https://pomf.se/upload.php)"
-BASE="$(jshon -e files -e 0 -e url -u <<< $JSON)"
-
-URL="https://a.pomf.se/$BASE"
-
-# copy the URL to the clipboard
-if [[ "$(type -p xclip)" ]]; then
- echo -n "$URL" | xclip -selection clipboard
- echo "$URL (has been copied to clipboard)"
-else
- echo "$URL"
-fi
-
-rm -f "$FILE"