Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- USD=`curl -ks https://bitpay.com/api/rates | python -m json.tool | grep -iA 1 'US Dollar' | grep -i 'rate' | cut -f2 -d ':' | tr -d ' '`
- BTC=`curl -s "https://blockchain.info/q/getreceivedbyaddress/\
- 1Mz7153HMuxXTuR2R1t78mGSdzaAtNbBWX|\
- 1BAdEKq6zE1JDL8g2pA1MDRHbW1wvYCWhT|\
- 1F2q59EoVzL5FhqTGs4jZWNnnim51aGZSD" |
- python -c 'import sys; r = sys.stdin.readline(); print float(r) / 100000000'`
- CASH=`awk "BEGIN{print $USD * $BTC}"`
- echo Total USD from Goldeneye / Petya: \$$CASH
Add Comment
Please, Sign In to add comment