shoestrap/assets/default/bin/haste

7 lines
153 B
Bash
Executable File

#! /bin/sh
host="hb.iamthefij.com"
a=$(cat)
curl -X POST -s -d "$a" https://${host}/documents | awk -v host=$host -F '"' '{print "https://"host"/"$4}'