|Jordan Doyle 41900eaeee||1 year ago|
|ci||1 year ago|
|src||1 year ago|
|templates||1 year ago|
|.gitignore||1 year ago|
|.travis.yml||1 year ago|
|COPYING||1 year ago|
|Cargo.lock||1 year ago|
|Cargo.toml||1 year ago|
|LICENSE||1 year ago|
|LICENSE-0BSD||1 year ago|
|LICENSE-WTFPL||1 year ago|
|README.md||1 year ago|
|shell.nix||1 year ago|
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 snippits 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.
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 ...
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.
$ curl -X PUT --data 'hello world' bin.doyle.la https://bin.doyle.la/cateettary $ curl https://bin.doyle.la/cateettary hello world
To get syntax highlighting you need to add the file extension at the end of your paste URL.