Updated readme

This commit is contained in:
qorg11 2021-05-01 20:37:09 +02:00
parent c81acdd4fd
commit 807e1302fe
No known key found for this signature in database
GPG key ID: 343FC20A4ACA62B9

View file

@ -11,59 +11,16 @@
For more detailed information, look at the For more detailed information, look at the
[manpage](https://codeberg.org/qorg11/lainsafe/src/branch/master/doc/lainsafe.md) [manpage](https://codeberg.org/qorg11/lainsafe/src/branch/master/doc/lainsafe.md)
## lainsafecli # clainsafecli
### Installation `clainsafecli` is the command line interface for lainsafe (and other
filesharing services)
#### Arch ## usage
[AUR - `lainsafecli`](https://aur.archlinux.org/packages/lainsafecli/)
### lainsafecli configuration `clainsafecli --server=http://server <file>`
edit the file with your favorite text editor and change these (for more info see -h)
variables:
```$DEFAULT_SERVER``` This is the server where lainsafecli will try to
upload the files.
```$DISPLAY_ASCII``` By default 1, change to 0 if you don't want the
Lain ascii art to appear when you upload a file.
### Command line arguments
```--server``` If given, it will be used instead of $DEFAULT_SERVER
```--help``` Displays a simple help message and exits.
```--file``` the file you want to upload (useless in newer versions)
### Example
~~~
$ lainsafecli --server https://lainsafe.delegao.moe sicp.png
_..-- ----- --.._
,-'' `-.
, \
/ \
/ ` . \
' / || ;
; ^/| |/ | |
| /v /\`-'v√\'-|\ ,
| /v` ,--- ---- .^.| ;
: | /´@@`, ,@@`\ | ;
' | '. @@ / \@@ / |\ |;
| ^| ----- --- | \/||
` |` | /\ /
\ \ |/ |,
' ; \ /| |
` \ -- / | |
` `. .-' | /
v,- `;._ _.; | |
`'`\ |-_ -^'^'| |
------ |/
https://lainsafe.delegao.moe/files/160572227741108.png
~~~
# Automatically removing files # Automatically removing files
@ -73,23 +30,18 @@ usage: `lsd <path> days`
lsd wont work with versions before 8a557ca lsd wont work with versions before 8a557ca
# but perl sux!! # but perl sucks!!
No problem, [use this No problem, [use this
then](https://ech1.github.io/blog/servers/phpfilesafe/index.html) then](https://ech1.github.io/blog/servers/phpfilesafe/index.html)
You don't have to use lainsafecli either, you can just use curl: You don't have to use lainsafecli either, you can just use curl:
`curl -F"file=@file" <server>` You can also use clainsafecli for other servers, such as u.kalli.st and 0x0.st
or just use [hlainsafecli](https://codeberg.org/suguivy/hlainsafecli)
# Donate # Donate
Thanks! Thanks!
[Liberapay](https://liberapay.com/qorg11)
Bitcoin: bc1qghl6f27dpgktynpvkrxte2s3gm9pcv8vlwuzum Bitcoin: bc1qghl6f27dpgktynpvkrxte2s3gm9pcv8vlwuzum
Monero: 47QTumjtqJabbo1s9pLDdXeJarLVLfs1AaEcbi1xrEiV852mqcbe5AHLNXTk7tH9MscxcxQDfJQnvH5LpxvfgwSJQZ3zbS6 Monero: 47QTumjtqJabbo1s9pLDdXeJarLVLfs1AaEcbi1xrEiV852mqcbe5AHLNXTk7tH9MscxcxQDfJQnvH5LpxvfgwSJQZ3zbS6