Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (7 sloc) 256 Bytes
#!/bin/bash
# needs better error handling, zxing returns true on fail, test with Stellar Invaders
set -e
tifftopnm <$1 2>/dev/null | pnmtojpeg >decode.jpg
URL=$(zxing decode.jpg && rm -f decode.jpg)
curl -sL $URL | sox - quick.aif
soxi -D quick.aif