🗑️ a paste bin.
Go to file
jordan@doyle.la 4eb9049a1a
Bump version to v1.0.5
2020-07-23 15:18:22 +01:00
ci Fix build after updating dependencies & make scripts posix-compliant 2020-04-12 16:44:59 +01:00
src Fixes #16: New lines lost when only a \n is given 2020-07-23 15:15:57 +01:00
templates Add viewport meta tag for better mobile interface 2020-06-13 11:15:41 +01:00
.dockerignore Add Dockerfile 2019-05-23 19:47:45 +01:00
.gitignore Add README 2019-02-11 10:34:23 +00:00
.travis.yml Fix build after updating dependencies & make scripts posix-compliant 2020-04-12 16:44:59 +01:00
COPYING Initial commit 2019-02-10 21:35:04 +00:00
Cargo.lock Bump version to v1.0.5 2020-07-23 15:18:22 +01:00
Cargo.toml Bump version to v1.0.5 2020-07-23 15:18:22 +01:00
Dockerfile Upated dockerfile to install libclang-dev 2020-05-15 03:08:14 +01:00
LICENSE Initial commit 2019-02-10 21:35:04 +00:00
LICENSE-0BSD . to - 2019-02-10 22:32:51 +00:00
LICENSE-WTFPL . to - 2019-02-10 22:32:51 +00:00
README.md Update README.md 2020-04-12 15:42:37 +01:00
shell.nix Move to async rocket 2020-04-13 11:47:50 +01:00

README.md

bin

a paste bin.

A paste bin that's actually minimalist. No database requirement, no commenting functionality, no self-destructing or time bomb messages and no social media integration—just an application to quickly send snippets of text to people.

bin is written in Rust in around 200 lines of code. It's fast, it's simple, there's code highlighting and you can ⌘+A without going to the 'plain' page. It's revolutionary in the paste bin industry, disrupting markets and pushing boundaries never seen before.

so how do you get bin?

Download the latest version from the releases page, extract it and run the ./bin executable. You can also compile it from source using Cargo if you swing that way:

# nix-shell provides an environment with rust/cargo installed
$ nix-shell

[nix-shell:~/Code/bin]$ cargo build --release
   Compiling bin v1.0.0 (/Users/jordanjd/Code/bin)
    Finished release [optimized] target(s) in 3.61s

[nix-shell:~/Code/bin]$ ./target/release/bin
    ...
how do you run it?
$ ./bin
funny, what settings are there?

bin uses rocket so you can add a rocket config file if you like. You can set ROCKET_PORT in your environment if you want to change the default port (8820).

bin's only configuration value is BIN_BUFFER_SIZE which defaults to 2000. Change this value if you want your bin to hold more pastes.

is there curl support?
$ curl -X PUT --data 'hello world' https://bin.gy
https://bin.gy/cateettary
$ curl https://bin.gy/cateettary
hello world
how does syntax highlighting work?

To get syntax highlighting you need to add the file extension at the end of your paste URL.