I hereby claim:
- I am kmullin on github.
- I am kmullin (https://keybase.io/kmullin) on keybase.
- I have a public key whose fingerprint is D5BE 6C6F 7DCA 6124 7545 FF75 77F3 D706 B394 1E45
To claim this, I am signing this object:
$ sudo bash puppet.sh | |
Info: Loading facts in /puppet/modules/puppetlabs-stdlib/lib/facter/facter_dot_d.rb | |
Info: Loading facts in /puppet/modules/puppetlabs-stdlib/lib/facter/pe_version.rb | |
Info: Loading facts in /puppet/modules/puppetlabs-stdlib/lib/facter/puppet_vardir.rb | |
Info: Loading facts in /puppet/modules/puppetlabs-stdlib/lib/facter/root_home.rb | |
Debug: hiera(): Hiera YAML backend starting | |
Debug: hiera(): Looking up number in YAML backend | |
Debug: hiera(): Looking for data source default | |
Debug: hiera(): Found number in default |
#!/bin/bash | |
pipe=/home/shairport/metadata/now_playing | |
datafile=$pipe.json | |
stringify() { | |
a=${1%%=*} | |
b=${1##*=} | |
echo "\"$a\": \"$b\"" | |
} |
# Heavily depends on: | |
# libqrencode (fukuchi.org/works/qrencode/) | |
# paperkey (jabberwocky.com/software/paperkey/) | |
# zbar (zbar.sourceforge.net) | |
# Producing the QR codes: | |
# Split over 4 codes to ensure the data per image is not too large. | |
gpg --export-secret-key KEYIDGOESHERE | paperkey --output-type raw | base64 > temp | |
split temp -n 4 IMG | |
for f in IMG*; do cat $f | qrencode -o $f.png; done |
I hereby claim:
To claim this, I am signing this object: