GNU/Linux ◆ xterm-256color ◆ bash 128 views

ATProto based pastebin

Deployment: https://paste.chadig.com GitHub: https://github.com/publicdomainrelay/atprotobin

Paste

curl -X POST --data-binary @README.md -H "Content-Type: text/plain" https://paste.chadig.com

Retrive using id from paste reponse JSON (| jq -r .id)

curl -sf https://paste.chadig.com/$id

Paste and retrive

curl -sf https://paste.chadig.com/$(curl -X POST --data-binary @README.md -H "Content-Type: text/plain" https://paste.chadig.com | tee /dev/stderr | jq -r .id)

Paste and retrive (development)

curl -sf http://localhost:8000/$(curl -X POST --data-binary @src/atprotobin/cli.py -H "Content-Type: text/plain" http://localhost:8000/ | tee /dev/stderr | jq -r .id)

Start server

python -m pip install -U pip setuptools wheel
python -m pip install -e .
ATPROTO_BASE_URL=https://atproto.chadig.com ATPROTO_HANDLE=publicdomainrelay.atproto.chadig.com ATPROTO_PASSWORD=$(python -m keyring get publicdomainrelay@protonmail.com password.publicdomainrelay.atproto.chadig.com) python -m atprotobin

asciicast