https://github.com/w4/bin
:wastebasket: a paste bin.
https://github.com/w4/bin
Last synced: 7 months ago
JSON representation
:wastebasket: a paste bin.
- Host: GitHub
- URL: https://github.com/w4/bin
- Owner: w4
- License: other
- Created: 2019-02-10T21:31:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T17:22:37.000Z (about 1 year ago)
- Last Synced: 2025-03-31T21:43:43.254Z (9 months ago)
- Language: Rust
- Homepage:
- Size: 224 KB
- Stars: 507
- Watchers: 5
- Forks: 47
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
- Self-Hosting-Guide - Bin
- awesome-rainmana - w4/bin - :wastebasket: a paste bin. (Rust)
- fucking-awesome-selfhosted - bin - A paste bin that's actually minimalist. `WTFPL/0BSD` `Rust` (Software / Pastebins)
- awesome-selfhosted - bin - A paste bin that's actually minimalist. `WTFPL/0BSD` `Rust` (Software / Pastebins)
- awesome-selfhosted - bin - A paste bin that's actually minimalist. `WTFPL/0BSD` `Rust` (Software / Pastebins)
- awesome-selfhosted - bin - A paste bin that's actually minimalist. `WTFPL/0BSD` `Rust` (Software / Pastebins)
- awesome-selfhosted - bin - A paste bin that's actually minimalist. `WTFPL/0BSD` `Rust` (Software / Pastebins)
- awesome-selfhosted - bin - A paste bin that's actually minimalist. `WTFPL/0BSD` `Rust` (Software / Pastebins)
- awesome-selfhosted - bin - a paste bin. `WTFPL/0BSD` `Rust` (Pastebins / Video Streaming)
- awesome-selfhosted123 - bin - a paste bin. `WTFPL/0BSD` `Rust` (Pastebins / Video Streaming)
- awesome-selfhosted - bin - A paste bin that's actually minimalist. `WTFPL/0BSD` `Rust` (Software / Pastebins)
README
# 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](https://bin.gy/) 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](https://github.com/w4/bin/releases) page, extract it and run the `./bin` executable. You can also compile it from source using Cargo if you swing that way:
```bash
# 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?
```bash
$ ./bin
```
##### funny, what settings are there?
```
$ ./bin
Usage: bin [] [--buffer-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?
```bash
$ 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.