view README.md @ 485:6cac8fcf8164

Update to rails 7 (and ruby 3.1)
author nanaya <me@nanaya.pro>
date Sat, 15 Jan 2022 02:07:02 +0900
parents 02d043b1967d
children
line wrap: on
line source

Zeropaste
=========

A pastebin with some features: create and destroy (with key) pastes.
The one running on [0paste.com](https://0paste.com).

Requirements:

* Ruby 3.1 or up (JRuby and Rubinius may also work)
* PostgreSQL
  (nothing PostgreSQL specific - can be easily changed if you know what you're doing.
  May or may not work with MySQL)
* Ruby Bundler

Optional:

* Newrelic account

Installation
------------

Left as an exercise.

Misc
----

Pasting from CLI:

    ...some commands... | curl 'https://0paste.com/pastes.txt' -F 'paste[paste]=<-'

Or with gzip to save bandwidth:

    ...some commands... | gzip | curl 'https://0paste.com/pastes.txt' -F 'paste[paste_gzip]=@-'

Privately:

    ...some commands... | gzip | curl 'https://0paste.com/pastes.txt' -F 'paste[is_private]=1' -F 'paste[paste_gzip]=@-'

Design
------

Current design is a bit crap. Suggestions and actual designs are welcome.