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 | |
| portlist=(80 8001 8003 8004 8007 8010) | |
| for port in ${portlist[@]} | |
| do | |
| res=`lsof -i tcp:$port` | |
| if [ -z "$res" ] | |
| then | |
| /sbin/reboot | |
| fi | |
| done |
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 | |
| ############################## | |
| # dnspodsh v0.4 | |
| # 基于dnspod api构架的bash ddns客户端 | |
| # 修改者:guisu2010@gmail.com | |
| # 原作者:zrong(zengrong.net) | |
| # 详细介绍:http://zengrong.net/post/1524.htm | |
| # 创建日期:2012-02-13 | |
| # 更新日期:2015-05-15 |
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
| [program:xxx] | |
| command = xxx | |
| autostart = true | |
| startsecs = 5 | |
| autorestart = true | |
| user = root | |
| stdout_logfile_maxbytes = 20MB | |
| stdout_logfile_backups = 20 | |
| stdout_logfile = /var/log/supervisor/frps.log | |
| stderr_logfile = /var/log/supervisor/frps_err.log |
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
| deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse | |
| deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse | |
| deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse | |
| deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse | |
| deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse | |
| deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse | |
| deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse | |
| deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse | |
| deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse | |
| deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse |
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
| /usr/sbin/asterisk -x "dongle cmd dongle0 AT+CMGD=1,4" |
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
| <?php | |
| $pdo = null; | |
| function DBConnect() { | |
| global $pdo; | |
| $pdo = new PDO('mysql:host=mysql.steem-lightdb.com;dbname=steem;port=3306','steemit','steemit'); | |
| $pdo->exec('set names utf8'); | |
| } | |
| function DBClose() { | |
| global $pdo; |
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
| FROM ubuntu:16.04 | |
| Volume /data | |
| Volume /yoyow_node_data_dir | |
| CMD /data/yoyow_node --rpc-endpoint -w 485699321 --private-key '["YYW7TSRLZ9EXZpxxxx","5JbDUxxxxxxxxxx"]' |
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
| <?php | |
| /* | |
| based on: http://stackoverflow.com/questions/7160899/websocket-client-in-php/16608429#16608429 | |
| FIRST EXEC PYTHON SCRIPT TO GET HEADERS | |
| */ | |
| $ws = new ws(array | |
| ( | |
| 'host' => '127.0.0.1', | |
| 'port' => 8080, |
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
| <?php | |
| $servername = ""; | |
| $username = ""; | |
| $password = ""; | |
| $conn = new PDO("mysql:host=$servername;dbname=steemdb", $username, $password); | |
| $i = 2508; | |
| $end = 3263402; // 3263402 | |
| $step = 100; |