Idea for how to set up your own personal pastebin:
1. Make /var/www/pastes/ on server.
2. Points paste.yourdomain.com at server.
3. Have nginx serve content of /var/www/pastes/.
4. alias paste=$'ssh paste.yourdomain.com \'cat > paste && mv paste /var/www/pastes/`sha1sum paste | cut -d" " -f1`\''
That's it that's the pastebin.
@technomancy @sjl I was going to advocate @technomancy’s method, but he did it first.
@sjl add a cronjob that runs find /var/www/pastes -mtime +7 -delete and you are set!
@sjl I have been doing this for years and it's great. (My version is in elisp tho) https://p.hagelb.org