mirror of
https://codeberg.org/gigirassy/shockbin.git
synced 2026-05-24 18:44:06 -04:00
simple cli-based pastebin written in crystal
- Crystal 96.6%
- Dockerfile 3.4%
| .forgejo/workflows | ||
| src | ||
| compose.yml | ||
| Dockerfile | ||
| LICENSE | ||
| README.md | ||
shockbin
shockbin is a simple cli-based pastebin written in crystal.
you can pipe terminal output to it, which makes it helpful for debugging or tech support.
all thats needed to use it is curl, which is included in most distros.
get started
only offically supported method of running is docker or any container solution with compose support.
- put the compose.yml in the folder you want.
mkdir -p dataand chown to your user.docker compose up -d
usage
-
create a paste:
curl -X PUT --data-binary @file https://shockbin.blitzw.in/ -
create a paste from output of any linux command (lsmod, ls, etc):
command | curl -X PUT --data-binary @- https://shockbin.blitzw.in/ -
retrieve it:
curl https://shockbin.blitzw.in/CODE
delete paste:
- DELETE request with header:
curl -X DELETE -H "X-Delete-Key: YOURKEY" https://shockbin.blitzw.in/CODE - ...or curl the deletion URL returned at upload:
curl https://shockbin.blitzw.in/CODE/delete/YOURKEY
=======================+=+++++-==+=+=++==+*#+++++++++++==+****+*====-::::::::::::::::::::::
=============:::::::====+=+++=#+=++++++++==#=+++++++++++++++*+*=+=+=:::::::::::::::::::::::
======== ..::=====:::-====+==#=+++.:. *:::::::++++++++***+++=+=--:::----:-:-:-::::::::
======= ..::=====:::=+++==:-::::::::::::=::. ::::++++*++=++++-----:---:----::::::::::
=====-=... ..::=---=::.:::::::#:::::::::::=::::::::.::::.::::=+=+=------::---::--:::::::::
======.... .::=----:::::::::.= .::....-.:::::::::::::::..++++=--:----::----::-::::::::
======..... ..:----=:::....:. .#...::=+=::-..::===::--=::::.:++++=---:-:---:::::::::::::::
======...... .::=.:=:::...:: :#..::=+=::...:===---- =:::.:-+====---------:----:-::::::::
======...... .::::::::....:: :....:.:.......:=-:====:... .-. :----:------:----:::::::::
======....... .:::::.:....:: : . .......:........... =-:-====-:--:-:-:-::::::::
======:...... .:::::::....:: :. .. ..........==+=+=+: ++===--:.-:--:--::-::::::::
=======...... .:::::::....::.: .::::+=+=+++++=+=+=+++=+++==-: .----:::-:-::::::::
=======:...... .:::::::........ .... .==+=+=++=+=+=+===+++=+=:-: .-----:----::::::::
========...... .::::.::...+=+=::-===####:===+==+=++=++=+=++=++==:--. :-:---:--::-:::::::
=========..... .::::::::+++++++==::##=::======+====+==+==++++---::-: :---:-:-::-::::::::
==========.... ..::::::..:=+=+=+:+:.: ===========+=+=+==+++=----:--: :-----:---:-:::::::
===========... ...:::::............ ==:#+===+=+=+=++=+=------::-: :-:---:::-:::::::::
============ . ...:::::. ..:::... .:::::::::==#####==+=:---:-:-::::-::::----:::-:::::::::
============= .....: ::..::::::::::::::::::::::====+==-------------::::---:--:-:-:: :::
===============... :::::::. .:::::::::::=======----:---------::--:----:-:-:: ::
=============::: :::::::::.....:...::: ==--*==--:---:----::--------:-:-:::: ::
==========:::::::: ............ ::::::::========-:--:----::-:-:-------::--::: ::.
==========:::::::::: .............::::--==========::::--:::--:---::::.
==========:::::::::::.. ........... ......:==========::::::::::::: ..
===========::::::::::..... ........ ......=::::-=======:::::::: .:::::::::::::::::
=============::::::::.............::::::-=:::::::======:::::: :::::::::::::::::::::::