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
#learnmysql_init will pull mysql and phpmyadmin/phpmyadmin images from the registry | |
function learnmysql_intit { | |
#Change supersecretpassword to work in not trusted network. | |
docker run --name mysql -e MYSQL_ROOT_PASSWORD="supersecretpassword" -d mysql | |
docker run --name phpmyadmin -d --link mysql:db -p 8080:80 phpmyadmin/phpmyadmin | |
} | |
function learnmysql_stop { | |
docker stop mysql phpmyadmin | |
} |
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 | |
#1. export gpg private key as ascii | |
#2. split ascii into 4 qr code images | |
#3. generate bash script for importing bash images | |
#4. generate bash script for decrypting files. | |
gpg --export-secret-key --armor | split -C 1000 - IMG | |
for f in IMG*; do cat $f | qrencode -o $f.png; rm -vf $f; done |