URI:
       tptpb - scripts - random scripts
  HTML git clone https://git.parazyd.org/scripts
   DIR Log
   DIR Files
   DIR Refs
       ---
       tptpb (484B)
       ---
            1 #!/bin/sh
            2 case "$(basename $0)" in
            3 ptpb)
            4         curl -F c=@- 'https://ptpb.pw/?u=1'
            5         ;;
            6 ixio)
            7         curl -F 'f:1=<-' 'http://ix.io'
            8         ;;
            9 sprunge)
           10         curl -F 'sprunge=<-' 'http://sprunge.us'
           11         ;;
           12 blck)
           13         curl -F "url=$1" 'https://blck.cf'
           14         ;;
           15 imgur)
           16         # clientid: 0017a6971e629f3
           17         # clientsecret: d23454369327aed1943aac01bec1921bf6a53c1c
           18         curl -s -H "Authorization: Client-ID 0017a6971e629f3" \
           19                 -H "Expect: " -F "image=@$1" \
           20                 https://api.imgur.com/3/image.json \
           21                 | jq -sr '.[]data.link'
           22         ;;
           23 esac