Created
March 11, 2017 17:55
-
-
Save unixpickle/0345631e56596c729c299e8e64a44b45 to your computer and use it in GitHub Desktop.
HashNet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
binarize() { | |
xxd -b | sed -e 's/ .*//g' | sed -e 's/.*://g' | tr $'\n' ' ' | | |
sed -e 's/\(.\)/ \1/g' | |
} | |
while true | |
do | |
path=$(mktemp -t hashgen) | |
dd if=/dev/random "of=$path" bs=6 count=1 2>/dev/null | |
cat "$path" | binarize | |
cat "$path" | md5 | xxd -r -p | binarize | |
rm "$path" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Input(w=8, h=6, d=1) | |
FC(out=512) | |
Tanh | |
FC(out=512) | |
Tanh | |
FC(out=512) | |
Tanh | |
FC(out=128) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment