An easy Pastebin service with command line client
Let me introduce you to Hastebin.
It is a simple pastebin service that you can self-host.
The server bits are available at https://github.com/seejohnrun/haste-server.
I personally use this Docker container: https://hub.docker.com/r/mkodockx/docker-pastebin
The awesome part is that a command line client exists!
On your Linux workstation, just do a simple
gem install haste.
Then create an alias in your
alias pastebin="HASTE_SERVER=https://your-haste-server.com haste".
Then after restarting your session or sourcing your config file, you can start pasting from the CLI:
echo blah | pastebin https://your-haste-server.com/ecikubicuk
The client sources are available at https://github.com/seejohnrun/haste-client