Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-d committed Feb 5, 2017
1 parent 92a8380 commit 2e08ae4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
🍭🐦☕🏐✍🎁👣✔◀🎂💅🎊🌴🍝➖🌽🍣🎓♦🍁
```
9 changes: 6 additions & 3 deletions ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e08ae4

Please sign in to comment.