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 | |
date_default_timezone_set('Asia/Shanghai'); | |
define('DEFAULT_UA', 'Mozilla/5.0 (Windows NT 6.1; rv:25.0) Gecko/20100101 Firefox/25.0'); | |
if (PHP_SAPI !== 'cli') { | |
die ("This is CLI only version!"); | |
} else { | |
$v = new Vagex(); | |
$v->set_userid('263378'); |
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
yum update -y | |
yum install php-cli -y | |
wget https://gist.githubusercontent.com/horsley/12a14498e02c994e0664/raw/a6e0dc785f2a17353860b02b163b5386a3823efa/VagexRobot.AllInOne.php | |
sed -i "s/240907/$1/" VagexRobot.AllInOne.php | |
screen -dmS vagex php VagexRobot.AllInOne.php | |
(crontab -u root -l; echo "@daily screen -X -S vagex quit; screen -dmS vagex php VagexRobot.AllInOne.php" ) | crontab -u root - |
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
eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9 |
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
/** | |
* kivivm设置脚本 | |
* | |
* 在浏览器控制台执行,可以设定域名解析,反向域名解析 | |
* 控制台输出如下结构,包括root密码,ssh端口号,IP地址, | |
* | |
* "www" => { "passwd" => "vd7sdfMfwdz", "port" => "26212", "ips" => %w(101.182.180.163 137.182.180.204 107.184.180.214 107.122.181.209)} | |
* | |
* 可用于kivivm.rb脚本设定 | |
* DNSPod的域名解析 |
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 | |
#Auto-reconnecting wget downloads upon disconnection. | |
WGET="wget -c -t 0 --timeout=3 --waitretry=3" | |
mkdir -p "地球往事" && cd $_ | |
for i in {1..49} | |
do | |
$WGET "http://jwplay.iusheng.com/AS03/audio1206/15548/$(printf "%03d" $i).mp3" | |
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
SET FOREIGN_KEY_CHECKS = 0; | |
SET GROUP_CONCAT_MAX_LEN=32768; | |
SET @tables = NULL; | |
SELECT GROUP_CONCAT('`', table_name, '`') INTO @tables | |
FROM information_schema.tables | |
WHERE table_schema = (SELECT DATABASE()); | |
SELECT IFNULL(@tables,'dummy') INTO @tables; | |
SET @tables = CONCAT('DROP TABLE IF EXISTS ', @tables); | |
PREPARE stmt FROM @tables; |
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 | |
[ -d hongbao ] && rm -rf hongbao | |
mkdir hongbao | |
cd hongbao | |
git init | |
git config user.name "duwan" | |
git config user.email "[email protected]" |
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
🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 | |
🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 | |
🐔 🐔 🐔 🐔 | |
🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 | |
🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 | |
🐔 🐔 🐔 🐔 🐔 🐔 🐔 | |
🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 | |
🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 | |
🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 🐔 | |
🐔 🐔 🐔 🐔 |
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 ./docker-logs-clean.sh container_name | |
logfile=$(docker inspect $1 | grep -G '"LogPath": "*"' | sed -e 's/.*"LogPath": "//g' | sed -e 's/",//g'); | |
echo "clean log file of container $1: $logfile" | |
truncate -s 0 $logfile | |
echo "done." |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.