🗑️ a paste bin.
Go to file
dependabot[bot] b049ea3794 Bump once_cell from 1.18.0 to 1.19.0
Bumps [once_cell](https://github.com/matklad/once_cell) from 1.18.0 to 1.19.0.
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md)
- [Commits](https://github.com/matklad/once_cell/compare/v1.18.0...v1.19.0)

---
updated-dependencies:
- dependency-name: once_cell
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-03 20:03:26 +00:00
.github Fix build 2023-11-27 19:48:45 +00:00
ci Fix build after updating dependencies & make scripts posix-compliant 2020-04-12 16:44:59 +01:00
src In plaintext mode, end with a newline 2023-12-24 15:14:46 +00:00
templates Same line height on paste submission & view 2023-12-24 08:01:10 +00:00
.dockerignore Build Docker container FROM scratch 2023-11-27 20:06:32 +00:00
.gitignore Add flake.nix 2022-12-04 20:27:07 +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 once_cell from 1.18.0 to 1.19.0 2024-01-03 20:03:26 +00:00
Cargo.toml Bump once_cell from 1.18.0 to 1.19.0 2024-01-03 20:03:26 +00:00
Dockerfile Build Docker container FROM scratch 2023-11-27 20:06:32 +00: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 Bump version 2022-03-14 22:45:28 +00:00
docker-compose.yml use static linking in Dockerfile; add docker-compose.yml 2023-10-17 16:56:01 +01:00
flake.lock Add flake.nix 2022-12-04 20:27:07 +00:00
flake.nix Add flake.nix 2022-12-04 20:27:07 +00:00
shell.nix Move to async rocket 2020-04-13 11:47:25 +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 300 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

Usage: bin [<bind_addr>] [--buffer-size <buffer-size>] [--max-paste-size <max-paste-size>]

a pastebin.

Positional Arguments:
  bind_addr         socket address to bind to (default: 127.0.0.1:8820)

Options:
  --buffer-size     maximum amount of pastes to store before rotating (default:
                    1000)
  --max-paste-size  maximum paste size in bytes (default. 32kB)
  --help            display usage information
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.