commit 4f7c09f479b3360a3459d14529543c60b6005aa3
parent b88d0198830d2514763a78c625538fd3ee153a41
Author: parazyd <parazyd@dyne.org>
Date: Sun, 18 Feb 2018 09:26:29 +0100
More scripts
Diffstat:
5 files changed, 27 insertions(+), 4 deletions(-)
diff --git a/ff b/ff
@@ -1,2 +1,2 @@
#!/bin/sh
-xhost si:localuser:ff && sudo -u ff firefox -no-remote -ProfileManager "$@"
+xhost si:localuser:ff && exec sudo -u ff firefox -no-remote -ProfileManager "$@"
diff --git a/imgur b/imgur
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# parazyd's imgur api
+# clientid: 0017a6971e629f3
+# clientsecret: d23454369327aed1943aac01bec1921bf6a53c1c
+
+client_id="0017a6971e629f3"
+
+curl -s -H "Authorization: Client-ID $client_id" \
+ -H "Expect: " -F "image=@$1" \
+ https://api.imgur.com/3/image.json | jq -sr '.[].data.link'
diff --git a/ixio b/ixio
@@ -0,0 +1 @@
+ptpb+
\ No newline at end of file
diff --git a/ptpb b/ptpb
@@ -1,5 +1,13 @@
#!/bin/sh
-#[ -n "$TORIFY" ] && proxy="--proxy socks5://127.0.0.1:9050"
-
-curl -F c=@- https://ptpb.pw/?u=1
+case "$(basename $0)" in
+ ptpb)
+ curl -F c=@- https://ptpb.pw/?u=1
+ ;;
+ ixio)
+ curl -F 'f:1=<-' http://ix.io
+ ;;
+ sprunge)
+ curl -F 'sprunge=<-' http://sprunge.us
+ ;;
+esac
diff --git a/sprunge b/sprunge
@@ -0,0 +1 @@
+ptpb+
\ No newline at end of file