tMore scripts - scripts - random scripts HTML git clone git://parazyd.org/scripts.git DIR Log DIR Files DIR Refs --- DIR commit 4f7c09f479b3360a3459d14529543c60b6005aa3 DIR parent b88d0198830d2514763a78c625538fd3ee153a41 HTML Author: parazyd <parazyd@dyne.org> Date: Sun, 18 Feb 2018 09:26:29 +0100 More scripts Diffstat: M ff | 2 +- A imgur | 11 +++++++++++ A ixio | 2 ++ M ptpb | 14 +++++++++++--- A sprunge | 2 ++ 5 files changed, 27 insertions(+), 4 deletions(-) --- DIR diff --git a/ff b/ff t@@ -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 "$@" DIR diff --git a/imgur b/imgur t@@ -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' DIR diff --git a/ixio b/ixio t@@ -0,0 +1 @@ +ptpb +\ No newline at end of file DIR diff --git a/ptpb b/ptpb t@@ -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 DIR diff --git a/sprunge b/sprunge t@@ -0,0 +1 @@ +ptpb +\ No newline at end of file