simple cli-based pastebin written in crystal
  • Crystal 96.6%
  • Dockerfile 3.4%
Find a file
2026-04-25 23:32:10 +02:00
.forgejo/workflows Update .forgejo/workflows/codeberg-publish.yml 2026-02-16 18:14:36 +01:00
src typo 2026-03-09 04:25:19 +01:00
compose.yml Update compose.yml 2026-02-16 20:07:33 +01:00
Dockerfile Update Dockerfile 2026-04-25 23:32:10 +02:00
LICENSE Initial commit 2026-02-16 17:32:54 +01:00
README.md Update README.md 2026-02-16 18:49:43 +01:00

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.

  1. put the compose.yml in the folder you want.
  2. mkdir -p data and chown to your user.
  3. 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
=======================+=+++++-==+=+=++==+*#+++++++++++==+****+*====-::::::::::::::::::::::
=============:::::::====+=+++=#+=++++++++==#=+++++++++++++++*+*=+=+=:::::::::::::::::::::::
======== ..::=====:::-====+==#=+++.:. *:::::::++++++++***+++=+=--:::----:-:-:-::::::::
======= ..::=====:::=+++==:-::::::::::::=::. ::::++++*++=++++-----:---:----::::::::::
=====-=... ..::=---=::.:::::::#:::::::::::=::::::::.::::.::::=+=+=------::---::--:::::::::
======.... .::=----:::::::::.= .::....-.:::::::::::::::..++++=--:----::----::-::::::::
======..... ..:----=:::....:. .#...::=+=::-..::===::--=::::.:++++=---:-:---:::::::::::::::
======...... .::=.:=:::...:: :#..::=+=::...:===---- =:::.:-+====---------:----:-::::::::
======...... .::::::::....:: :....:.:.......:=-:====:... .-. :----:------:----:::::::::
======....... .:::::.:....:: : . .......:........... =-:-====-:--:-:-:-::::::::
======:...... .:::::::....:: :. .. ..........==+=+=+: ++===--:.-:--:--::-::::::::
=======...... .:::::::....::.: .::::+=+=+++++=+=+=+++=+++==-: .----:::-:-::::::::
=======:...... .:::::::........ .... .==+=+=++=+=+=+===+++=+=:-: .-----:----::::::::
========...... .::::.::...+=+=::-===####:===+==+=++=++=+=++=++==:--. :-:---:--::-:::::::
=========..... .::::::::+++++++==::##=::======+====+==+==++++---::-: :---:-:-::-::::::::
==========.... ..::::::..:=+=+=+:+:.: ===========+=+=+==+++=----:--: :-----:---:-:::::::
===========... ...:::::............ ==:#+===+=+=+=++=+=------::-: :-:---:::-:::::::::
============ . ...:::::. ..:::... .:::::::::==#####==+=:---:-:-::::-::::----:::-:::::::::
============= .....: ::..::::::::::::::::::::::====+==-------------::::---:--:-:-:: :::
===============... :::::::. .:::::::::::=======----:---------::--:----:-:-:: ::
=============::: :::::::::.....:...::: ==--*==--:---:----::--------:-:-:::: ::
==========:::::::: ............ ::::::::========-:--:----::-:-:-------::--::: ::.
==========:::::::::: .............::::--==========::::--:::--:---::::.
==========:::::::::::.. ........... ......:==========::::::::::::: ..
===========::::::::::..... ........ ......=::::-=======:::::::: .:::::::::::::::::
=============::::::::.............::::::-=:::::::======:::::: :::::::::::::::::::::::