update 0x0 alias

This commit is contained in:
creme 2020-01-14 17:23:52 +01:00
parent 3e3ff6c28a
commit ba13267e21
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
1 changed files with 4 additions and 0 deletions

View File

@ -19,12 +19,16 @@ or Content of a file:<br />
add the following lines to you're aliases file `~/.bash_aliases`
```bash
0file() { curl -F"file=@$1" https://envs.sh ; }
0pb() { curl -F'file=@-;' https://envs.sh ; }
0url() { curl -F"url=$1" https://envs.sh ; }
0short() { curl -F"shorten=$1" https://envs.sh ; }
```
HTTP POST files here:<br />
&nbsp;&nbsp;`0file "yourfile.png"`
post your text directly:<br />
&nbsp;&nbsp;`echo "text here" | 0pb`
you can also POST remote URLs:<br />
&nbsp;&nbsp;`0url "https://example.com/image.jpg"`