Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Introduction

 ████  █████      ███
▒▒███ ▒▒███      ▒▒▒
 ▒███  ▒███████  ████  ████████
 ▒███  ▒███▒▒███▒▒███ ▒▒███▒▒███
 ▒███  ▒███ ▒███ ▒███  ▒███ ▒███
 ▒███  ▒███ ▒███ ▒███  ▒███ ▒███
 █████ ████████  █████ ████ █████
 ▒▒▒▒▒ ▒▒▒▒▒▒▒▒  ▒▒▒▒▒ ▒▒▒▒ ▒▒▒▒▒
 -sakura <mail.liminal@pm.me>

About

lbin is designed to work exclusively with the file hosting service provided through https://bin.liminal.cafe, which is forked from rustypaste.

If you have any questions or have suggestions for lbin, please create an issue over at the repo.

This is essentially an expanded version of lbin -h that doubles as an online reference.

Download

Binaries

You can download lbin at the release section. I have binaries made for Mac ARM, Linux x86-64, and Linux ARM. If your system doesn’t use any of these architectures, you can compile it yourself.

Compile

git clone https://codeberg.org/gnp/lbin.git
cd lbin
cargo build

Examples

File

Regular

  • This hosts the file for 6 hours.
lbin -f /path/to/file

One-Shot File

  • Same as above, but the link is one-time use only.
lbin -F ./path/to/file

URL

Shortener

  • Good for atrociously long urls.
lbin -u https://some-really-long-url-that-may-be-really-annoying-to-paste-somewhere-.com

One-Shot URL

  • Same as above, but the link is one-time use only.
lbin -U https://liminal.cafe

Remote File

  • Link a file from a different site.

Note: This may not work with some websites that discourage hotlinking.

lbin -r https://example.com/some-file.jpeg

Command-Line Input

  • Good if you just need to do a quick paste from the terminal and can’t be bothered to package it into a file. This command essentially does that for you!
lbin -i This text will be available in an uploaded .txt file to read.

Authorization

In order to use this service, you will need to set the -l flag along with the token you should have been provided. There are two ways to do this.

Use as flag

You will need -l <token> as part of your command for every command.

lbin -l <token> -F ./path/to/file

Set in command line

Or, you can set the following in your terminal or .rc file and not have to use the -l flag as part of the command.

export LBIN_AUTH=<token>

Options

OptionDescription
-l, - -lbin-auth <LBIN_AUTH>Not required if you export LBIN_AUTH=<token>
-f, - -fileUpload a file
-F, - -oneshot-fileOne-time use URL for an uploaded file
-u, - -urlURL shortener
-U, - -oneshot-urlMake a one-time use URL
-r, - -remote-urlLink a file from a remote URL
-i, - -std-inputCommand-line input to file upload
-h, - -helpPrint help
-V, - -versionPrint version