Skip to content

Instantly share code, notes, and snippets.

@mochaaP
Last active May 27, 2022 14:31
Show Gist options
  • Save mochaaP/5b4ca7b230526621445d13f5bf9dce01 to your computer and use it in GitHub Desktop.
Save mochaaP/5b4ca7b230526621445d13f5bf9dce01 to your computer and use it in GitHub Desktop.
micro (144 bytes) ptpb client
$ [PST_PRIVATE=1] pst [slug] < file

quick install

curl -L https://fars.ee/AFoB | install -Dm755 /dev/stdin /usr/local/bin/pst

why

  • runs everywhere
  • extremely compact
  • im bored

legal

wtfpl.

#!/bin/sh
e="${PST_ENDPOINT:-https://fars.ee}"
p="${PST_PRIVATE:-0}"
s=""
if [[ "$1" != "" ]]; then s="~$1"; fi
curl -sF "f=@-" -F p=$p "$e/$s"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment