mirror of
https://github.com/arfct/itty-bitty.git
synced 2026-03-11 08:54:33 +00:00
Merge pull request #40 from rayfoss/patch-1
README: Wrong syntax on mac echo
This commit is contained in:
commit
5292c4b789
1 changed files with 7 additions and 3 deletions
10
README.md
10
README.md
|
|
@ -41,14 +41,18 @@ Encoding (Python)
|
|||
|
||||
`base64.b64encode(lzma.compress(bytes("hello world",encoding="utf-8"), format=lzma.FORMAT_ALONE, preset=9))`
|
||||
|
||||
Encoding (Node.js)
|
||||
|
||||
`'https://itty.bitty.site/#/'+Buffer.from(lzma.compress("Hello World", 9)).toString('base64')`
|
||||
|
||||
Decoding (Mac)
|
||||
|
||||
`echo "[URL]" -n | sed 's/^.*#[^\/]*\///g' | base64 -D | lzma -d `
|
||||
`echo -n "[URL]" | sed -E 's/^.*#[^\/]*\/\??//g' | base64 -D | lzma -d `
|
||||
|
||||
Decoding (Linux)
|
||||
|
||||
`echo -n "[URL]" | sed 's/^.*#[^\/]*\///g' | base64 -d | lzma -d`
|
||||
`echo -n "[URL]" | sed -E 's/^.*#[^\/]*\/\??//g' | base64 -d | lzma -d`
|
||||
|
||||
Decoding (Win)
|
||||
Decoding (Win Git/WSL)
|
||||
|
||||
`echo -n "[URL]" | sed 's/^.*#[^\/]*\///g' | base64 -d | xz --format=lzma -d`
|
||||
|
|
|
|||
Loading…
Reference in a new issue