This file contains hidden or 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 | |
| ## sudo apt install python3-pip | |
| ## | |
| # URL and command details | |
| URL="http://192.168.0.65:49152/description.xml" | |
| COMMAND="/usr/local/bin/upnp-client --pprint call-action $URL AVTransport/GetInfoEx InstanceID=0" | |
| POWER_URL="/usr/bin/wget -O /dev/null -o /dev/null http://192.168.0.202/cm?cmnd=Power%20" | |
| INTERVAL=5 | |
| # Initialize previous status |
This file contains hidden or 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
| docker run -h proxyweb --name proxyweb --network="host" -d proxyweb/proxyweb:latest | |
| git clone https://github.com/edmodo/proxyweb | |
| cd proxyweb | |
| make install | |
| docker run -h proxyweb --name proxyweb -p 5000:5000 -d proxyweb/proxyweb:latest |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=Edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | |
| <meta name="mobile-web-app-capable" content="yes"> | |
| <meta name="apple-mobile-web-app-capable" content="yes"> | |
| <meta name="theme-color" content="#414141"> |
This file contains hidden or 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
| CREATE TABLE `users` ( | |
| `id` BIGINT(20) NOT NULL AUTO_INCREMENT, | |
| `username` CHAR(128), | |
| `passwordhash` VARCHAR(32), | |
| `description` TEXT, | |
| `joined` datetime, | |
| `last_visit` datetime, | |
| PRIMARY KEY (`id`), | |
| UNIQUE KEY `last_visit_username` (`last_visit`,`username`), | |
| KEY `last_visit` (`last_visit`), |
This file contains hidden or 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
| #file proxysql.cfg | |
| # This config file is parsed using libconfig , and its grammar is described in: | |
| # http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-File-Grammar | |
| # Grammar is also copied at the end of this file | |
| datadir="/var/lib/proxysql" |
This file contains hidden or 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
| Thu Jul 21 14:34:16 2016 - [info] MHA::MasterRotate version 0.56. | |
| Thu Jul 21 14:34:16 2016 - [info] Starting online master switch.. | |
| Thu Jul 21 14:34:16 2016 - [info] | |
| Thu Jul 21 14:34:16 2016 - [info] * Phase 1: Configuration Check Phase.. | |
| Thu Jul 21 14:34:16 2016 - [info] | |
| Thu Jul 21 14:34:16 2016 - [warning] Global configuration file /etc/masterha_default.cnf not found. Skipping. | |
| Thu Jul 21 14:34:16 2016 - [info] Reading application default configuration from /etc/mha_mukkannnn.cnf.. | |
| Thu Jul 21 14:34:16 2016 - [info] Reading server configuration from /etc/mha_mukkannnn.cnf.. | |
| Thu Jul 21 14:34:16 2016 - [info] GTID failover mode = 0 | |
| Thu Jul 21 14:34:16 2016 - [info] Current Alive Master: 10.77.24.236(10.77.24.236:3306) |