Idea for how to set up your own personal pastebin:

1. Make /var/www/pastes/ on server.
2. Points at server.
3. Have nginx serve content of /var/www/pastes/.
4. alias paste=$'ssh \'cat > paste && mv paste /var/www/pastes/`sha1sum paste | cut -d" " -f1`\''

That's it that's the pastebin.

@sjl I have been doing this for years and it's great. (My version is in elisp tho)

@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!

Sign in to participate in the conversation

The original server operated by the Mastodon gGmbH non-profit