From 2e08ae49960bd45a962a275bf3c10fb89d8c7a5c Mon Sep 17 00:00:00 2001 From: Andrew Dunham Date: Sat, 4 Feb 2017 23:06:26 -0800 Subject: [PATCH] Update README --- README.md | 30 ++++++++++++++++++++++++++++++ ci/script.sh | 9 ++++++--- 2 files changed, 36 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 08ed120..4351594 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,33 @@ standard output. The current emoji table is as follows: โ›ช๐Ÿ†—๐ŸŽ€๐Ÿ’Š๐Ÿ’‰๐Ÿ””๐Ÿ”ฌ๐Ÿ•ฏโ—€โ–ถโฌ…โฌ†โฌ‡โ†—โ†–โ†˜ โ†™โ†ฉโ†ช๐Ÿ”„โฉโชโซโฌโธโœจโ˜ฎโ˜ขโ˜ฏโœกโš“โš™ ๐ŸŽข๐ŸŽก๐ŸŽช๐Ÿšฉ๐ŸŽฌ๐ŸŽฎ๐ŸŽฐ๐ŸŽฑ๐ŸŽต๐ŸŽบ๐ŸŽฟ๐Ÿ‹๐Ÿญ๐Ÿ‘…๐Ÿ‘€๐Ÿ‘ฏ + +### Example + +``` +$ echo 'my string' | cargo run +๐ŸทโŒ›๐ŸŽธ๐ŸŽ„๐ŸŽ…๐ŸŽƒ๐Ÿ…๐Ÿบ๐Ÿ๐Ÿ‘ˆ +``` + +Some possible real-world uses of this could include: + +#### SSH Key Validation + +``` +$ ssh-keygen -E sha256 -l -f ~/.ssh/id_main_rsa | awk -F'[ :]' '{print $3}' | base64 -d | emoji256 +โญ๐Ÿ‘ฟ๐Ÿช๐Ÿ“‹โœˆโœ”โœ”๐ŸŽ๐ŸŽŠ๐Ÿžโ†ช๐Ÿ“ทโ˜”๐Ÿ’ฃ๐Ÿ”‘๐Ÿ‹๐Ÿ‘€๐Ÿช๐Ÿธ๐Ÿชโœ‚๐ŸŽปโ†˜๐ŸŒฎ๐ŸŒฝ๐ŸŽฅ๐Ÿ’ณ๐Ÿšฝโ†ชโฐ๐ŸซโŒ› +``` + +#### Hash Comparison + +``` +$ sha256sum Cargo.toml | cut -d' ' -f1 | xxd -r -p | emoji256 +๐Ÿค–๐ŸŠ๐Ÿขโ†ฉ๐Ÿ•ธ๐ŸŸโ™ฃโ˜€โ†™๐Ÿ„โฌ…๐Ÿธ๐Ÿ‘ฏโฐ๐Ÿ‘‘โœ‚๐Ÿ”๐Ÿ…๐ŸŽฐโ“๐Ÿ‰๐Ÿ“๐ŸŒต๐Ÿˆโค๐ŸŽ‚๐ŸŒฎ๐ŸŽˆโ›ช๐Ÿ‘‡๐Ÿ”ง๐ŸŽ‚ +``` + +#### GPG Key Fingerprints + +``` +$ gpg --list-keys --with-colons pacman@localhost | grep '^fpr' | cut -d':' -f10 | xxd -r -p | emoji256 +๐Ÿญ๐Ÿฆโ˜•๐Ÿโœ๐ŸŽ๐Ÿ‘ฃโœ”โ—€๐ŸŽ‚๐Ÿ’…๐ŸŽŠ๐ŸŒด๐Ÿโž–๐ŸŒฝ๐Ÿฃ๐ŸŽ“โ™ฆ๐Ÿ +``` diff --git a/ci/script.sh b/ci/script.sh index 76e7c1d..d76960f 100755 --- a/ci/script.sh +++ b/ci/script.sh @@ -17,9 +17,12 @@ main() { ls -alh ./target/$TARGET/release || true # We can't use 'cross run' because we need to pass a string to the binary - # on stdin. Just run the output manually. - # TODO: this fails on ONLY a single target for reasons that I can't be - # arsed to figure out right now. Just don't attempt it there. + # on stdin, which doesn't currently work: + # https://github.com/japaric/cross/issues/52 + # + # As a result, and since Linux can't run i686 binaries on a x64 host, we + # blacklist the specific target. It's possible we could add more logic + # here, but this works for now. if [ "$TARGET" != "i686-unknown-linux-gnu" ]; then echo 'Foobar' | ./target/$TARGET/debug/emoji256 echo 'Foobar' | ./target/$TARGET/release/emoji256