To configure the server, edit the
- pbpst — https://github.com/HalosGhost/pbpst pbqst
- A pb client written in C. || AUR
curl -F c=@- https://ptpb.pw < file
/fpath, for example https://ptpb.pw/f.
Seeand for usage details.
By default pastes are created with no expiration time. They'll last as long as the service's operator let them.
-x option may be used to set the number of seconds after which a paste should be removed:
$ thePaste="$(cat /dev/urandom | tr -cd [:print:] | head -c 32)" $ echo "$thePaste" cnf[HiC%Ybe't]4aSeIruw5hkB.h~i^B $ echo "$thePaste" | pbpst -S -m 'A test message that expires after 60s' -x 60 https://ptpb.pw/scrubbed $ date; curl 'https://ptpb.pw/scrubbed' Tue Apr 12 19:11:41 CEST 2016 cnf[HiC%Ybe't]4aSeIruw5hkB.h~i^B $ date; curl 'https://ptpb.pw/scrubbed' Tue Apr 12 19:13:06 CEST 2016 status: not found
The expired pastes, while no longer available from the remote service, are still listed in the local database:
$ pbpst -Dq expires deadbeef-dead-beef-dead-1111111111 https://ptpb.pw/scrubbed A test message that expires after 60s 1460481140
To prune them
-Dy should be used:
$ pbpst -Dy $ pbpst -Dq expires