- https://forum.xda-developers.com/showpost.php?p=58471627&postcount=381
- https://forum.xda-developers.com/android/development/intel-android-devices-root-temp-cwm-t2975096/post66226530#post66226530
- https://forum.xda-developers.com/showthread.php?t=2681783
- http://forum.xda-developers.com/android/development/intel-android-devices-root-temp-cwm-t2975096
- InterlAndroid-FBRL.7z
- SuperSu.zip
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 | |
# github.com/projectivemotion | |
# | |
# This script displays a listbox and allows a user | |
# to select and execute any of the commands from a given | |
# ini file. (run.ini) | |
# | |
cd $(dirname "$0") |
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 | |
# epel | |
yum install -y epel-release | |
# docker | |
yum install -y yum-utils device-mapper-persistent-data lvm2 | |
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
yum install -y docker-ce | |
systemctl enable docker |
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 |
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/sh | |
# add to your crontab? | |
# 45 * * * * /path/to/start-service-if-host-unreachable.sh | |
machine="moto" | |
service="reverse-tunnel" | |
if [ "$USER" != "root" ] ; then | |
echo "You are not root. bye." | |
exit 1; |
These commands were taking from the talk Introduction to Advanced Bash Usage by James Pannacciulli
Updated 21 Jan 2017 06:54:53
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 | |
# save as after.sh in project root then run vagrant up | |
if [ "$USER" != "root" ] ; then | |
sudo /bin/bash "$0" | |
exit 0 | |
fi | |
# install php5.6 | |
apt-get update -y |
Using clue/ttrss image: https://github.com/clue/docker-ttrss
I was having some problem configuring the container using DB_PASS and DB_USER variables. I ended up using DB_ENV_USER and DB_ENV_PASS and was able to get the container up and running;
docker run -d --name ttrssdb -e 'MYSQL_ROOT_PASSWORD=my-secret-pw' mariadb
sleep 20 && docker run --link ttrssdb:db -p 89:80 -e DB_ENV_USER=root -e DB_ENV_PASS=my-secret-pw -d --name ttrss clue/ttrss
NewerOlder