correct usage guides
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
This commit is contained in:
parent
27f84bbe3b
commit
ef96dcff33
2 changed files with 47 additions and 47 deletions
6
readme
6
readme
|
|
@ -19,17 +19,17 @@
|
|||
|
||||
Paste a file named 'file.txt' using cURL:
|
||||
|
||||
curl -d@file.txt https://bin.wantguns.dev
|
||||
curl --data-binary @file.txt https://bin.wantguns.dev
|
||||
|
||||
Paste from stdin using cURL:
|
||||
|
||||
echo "Hello, world." | curl -d@- https://bin.wantguns.dev
|
||||
echo "Hello, world." | curl --data-binary @- https://bin.wantguns.dev
|
||||
|
||||
Add this to your .zshrc to implement a quicker usage.
|
||||
|
||||
function paste() {
|
||||
local file=${1:-/dev/stdin}
|
||||
curl -d@${file} https://bin.wantguns.dev
|
||||
curl --data-binary @${file} https://bin.wantguns.dev
|
||||
}
|
||||
|
||||
If the uploaded data binary is parsed as "text/*", then the paste will be syntax
|
||||
|
|
|
|||
|
|
@ -91,17 +91,17 @@ fn index() -> &'static str {
|
|||
|
||||
Paste a file named 'file.txt' using cURL:
|
||||
|
||||
curl -d@file.txt https://bin.wantguns.dev
|
||||
curl --data-binary @file.txt https://bin.wantguns.dev
|
||||
|
||||
Paste from stdin using cURL:
|
||||
|
||||
echo \"Hello, world.\" | curl -d@- https://bin.wantguns.dev
|
||||
echo \"Hello, world.\" | curl --data-binary @- https://bin.wantguns.dev
|
||||
|
||||
Add this to your .zshrc to implement a quicker usage.
|
||||
|
||||
function paste() {
|
||||
local file=${1:-/dev/stdin}
|
||||
curl -d@${file} https://bin.wantguns.dev
|
||||
curl --data-binary @${file} https://bin.wantguns.dev
|
||||
}
|
||||
|
||||
If the uploaded data binary is parsed as \"text/*\", then the paste will be syntax
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue