NAME
lesma - simple paste app friendly with browser and command line
SYNOPSIS
<command> | curl -F 'lesma=<-' http://lesma.eu
DESCRIPTION
add ?limit=n to set a download count limit (0: unlimited; max: 255)
add ?expire=n to set an expiration time in hours (max: 720h/30d)
add ?password=p to set a password or obtain a password-protected lesma
replace 'lesma=<-' with '[email protected]' to send binary files (max: 10MiB)
add any extension to resulting url for line numbers
and syntax highlighting
add ?raw for plain file
add #n-<number> for go directly to line number
anchor
DEFAULTS
Download count limit: unlimited
Expiration time: 720 hour(s) / 30 day(s)
SPECIALS
/:help show this page
EXAMPLES
Basic usage
~$ cat lesma.rs | curl -F 'lesma=<-' http://lesma.eu http://lesma.eu/lesma ~$ firefox http://lesma.eu/lesma.rs
Set a view / download limit
~$ cat lesma.rs | curl -F 'lesma=<-' 'http://lesma.eu?limit=1' http://lesma.eu/lesma ~$ curl http://lesma.eu/lesma.rs Show lesma contents. Colored! ~$ curl http://lesma.eu/lesma.rs lesma not found Note that cloning lesmas through the web consumes a view.
Send text that can only be viewed once
~$ curl -F 'lesma=some text' 'http://lesma.eu?limit=1'
Set an expiration time of one hour
~$ curl -F 'lesma=some text' 'http://lesma.eu?expire=1'
Set a limit of ten views or an expiration time of one day
~$ curl -F 'lesma=some text' 'http://lesma.eu?limit=10&expire=24'
Set a password-protected lesma
~$ curl -F 'lesma=some text' 'http://lesma.eu?password=complexword' Note that the password is entered as a URL option so special characters must be transformed into URL encoding.
Get a password-protected lesma
~$ curl 'http://lesma.eu/lesma?password=complexword'
Set a limit of one view or an expiration of one hour and password-protected
~$ curl -F 'lesma=text' 'http://lesma.eu?limit=1&expire=1&password=pass'
Send any binary file
~$ curl -F '[email protected]' http://lesma.eu You can send limit, expire and password parameters just like with text lesmas. This always generates a download link regardless of the file you send.
AUTHOR
Written by Óscar García Amor
COPYRIGHT
Copyright © 2017-2023 Óscar García Amor (https://ogarcia.me).
Distributed under terms of the GNU GPLv3 license.
REPORTING BUGS
https://gitlab.com/ogarcia/lesma/issues
SEE ALSO