Merge pull request #40 from rayfoss/patch-1

README: Wrong syntax on mac echo
This commit is contained in:
Nicholas Jitkoff 2018-07-30 07:09:26 -07:00 committed by GitHub
commit 5292c4b789
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`