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.

Follow

@sjl add a cronjob that runs find /var/www/pastes -mtime +7 -delete and you are set!

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!