summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChloe Kudryavtsev <toast@toast.cafe>2021-07-23 17:48:40 -0400
committerChloe Kudryavtsev <toast@toast.cafe>2021-07-23 17:48:40 -0400
commit3110a2d205b0355af46d4a2b40b87faddcdbed8f (patch)
treeb3023bce5bd82faed9bbe11145123a1ab345bde5
parentgo env: fix homedir -> homeDir (diff)
anypaste plugins: remove
Diffstat (limited to '')
-rw-r--r--dot_anypaste-plugins/executable_anyclone21
-rw-r--r--dot_anypaste-plugins/executable_anyminio35
-rw-r--r--dot_anypaste-plugins/executable_brpaste28
3 files changed, 0 insertions, 84 deletions
diff --git a/dot_anypaste-plugins/executable_anyclone b/dot_anypaste-plugins/executable_anyclone
deleted file mode 100644
index 6fc03d5..0000000
--- a/dot_anypaste-plugins/executable_anyclone
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-case $1 in
- check_eligibility)
- true
- ;;
- upload)
- d=$(date +%Y/%m/%d)
- rclone copyto "$ap_path" "fafnir:shared/anypaste/$d/$ap_human_name"
- echo >&2
- echo "Direct: https://minio.toast.cafe/shared/anypaste/$d/$ap_human_name"
- echo
- ;;
- get_info)
- echo '[name]'
- echo 'RClone'
- echo '[description]'
- echo 'LMAO'
- echo '[tags]'
- echo 'private'
- echo 'direct'
-esac
diff --git a/dot_anypaste-plugins/executable_anyminio b/dot_anypaste-plugins/executable_anyminio
deleted file mode 100644
index 173369b..0000000
--- a/dot_anypaste-plugins/executable_anyminio
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-: "${anyminio_cli:=mc}"
-
-case $1 in
- check_eligibility)
- true
- ;;
- upload)
- d=$(date +%Y/%m/%d)
- path="$anyminio_prefix/$d/$ap_human_name"
-
- "$anyminio_cli" cp "$ap_path" "$path" ||
- { echo 'ERROR: Upload failed!' >&2; exit 1; }
- url=$($anyminio_cli ls --json "$path" | jq -r .url) ||
- { echo 'ERROR: Fetching object information failed!' >&2; exit 2; }
-
- echo
- echo "Link: $url"
- echo "Direct: $url"
- echo
- ;;
- get_info)
- echo '[name]'
- echo 'Minio'
- echo '[description]'
- echo 'Uses minio-client to upload to an arbitrary location (+date and human name). Requires jq to run.'
- echo '[tags]'
- echo 'direct'
- echo 'permanent'
- echo 'private'
- echo '[config]'
- echo 'optional|anyminio_mcli|binary to use as minio-client, defaults to mc'
- echo 'required|anyminio_prefix|prefix to place data into, e.g target/shared/anypaste'
- echo 'optional|MC_HOST_target|authorization env to use for *target* if not configured'
-esac
diff --git a/dot_anypaste-plugins/executable_brpaste b/dot_anypaste-plugins/executable_brpaste
deleted file mode 100644
index bb5afb9..0000000
--- a/dot_anypaste-plugins/executable_brpaste
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-
-: "${brpaste_host:=https://brpaste.xyz}"
-
-case $1 in
- check_eligibility)
- [[ $ap_mime == text/* ]]
- ;;
- upload)
- brpaste_id=$(curl -#fF "data=<$ap_path" "$brpaste_host") \
- || { echo 'ERROR: Upload failed!' >&2 && exit 1; }
- echo
- echo "Link: $brpaste_host/$brpaste_id"
- echo "Direct: $brpaste_host/raw/$brpaste_id"
- echo
- ;;
- get_info)
- echo '[name]'
- echo 'BRPaste'
- echo '[description]'
- echo 'A pastebin so fast, it burns rubber.'
- echo '[tags]'
- echo 'private'
- echo 'direct'
- echo
- echo '[optional_config]'
- echo 'brpaste_host:Hosted instance to use (default: https://brpaste.xyz)'
-esac