Simple hastebin proxy server similar in nature to the original fiche.
Instead of storing data ourselves, we rely on a haste-server
or any HTTP server that accepts a POST /documents
request that returns a JSON response in the
format of {"key":"string"}
. The key
is then joined to the server's URL, forming a response of
{url}/{key}
(e.x. https://ptero.co/{key}
) that is sent back to the caller.
This tool is used to allow easy sharing of logs and files without any complex bash scripting or software installation on systems.
Requests:
echo 'Hello, world!' | nc ptero.co 99
cat file.txt | nc ptero.co 99
Response:
https://ptero.co/{key}
$ fiche --help
Usage: fiche [flags]
Flags:
-h, --help Show context-sensitive help.
--listen=":99" Listen address
--hastebin=https://ptero.co haste-server URL
CGO_ENABLED=0 go build -v -trimpath -o dist/fiche github.com/matthewpi/fiche