Commit: eec3b4ec6a979a0e8cd287a861cc6a2a881b5c19 Parent: 3fd0c758f46c3dc3dea712e069178d80295b76f5 Author: Randy Palamar Date: Tue, 4 Aug 2026 07:12:01 -0700 add bin/pastebin no idea if this still works but it gives something to go by Diffstat:
| A | bin/pastebin | | | 18 | ++++++++++++++++++ |
1 file changed, 18 insertions(+), 0 deletions(-)
diff --git a/bin/pastebin b/bin/pastebin @@ -0,0 +1,18 @@ +#!/bin/sh +# no command line arguments - assume read from stdin +if [ -z "$1" ] || [ "$1" = - ] ; then + curl -F 'f:1=<-' ix.io +#file name argument: post to 0x0 +elif [ -e "$1" ] ; then + curl -F"file=@\"$1\"" https://0x0.st +else +cat << EOF +usage: head -n 20 foo.txt | $0 + $0 < foo.txt +text input from stdin will be pasted to http://ix.io + +usage: $0 filename +posts filename to https://0x0.st +this can be binary and up to 512MB. +EOF +fi