Npm Install express body-parser wol silly-datetime
npm install express body-parser wol silly-datetime --sava
sudo npm install pm2 -g
sudo pm2 start /volume1/web/node/pm2_config.json| #!/bin/bash | |
| firewall-cmd --add-rich-rule="rule family="ipv4" source address="173.245.48.0/20" port protocol="tcp" port="80" accept" ; firewall-cmd --add-rich-rule="rule family="ipv4" source address="103.21.244.0/22" port protocol="tcp" port="80" accept" ; firewall-cmd --add-rich-rule="rule family="ipv4" source address="103.22.200.0/22" port protocol="tcp" port="80" accept" ; firewall-cmd --add-rich-rule="rule family="ipv4" source address="103.31.4.0/22" port protocol="tcp" port="80" accept" ; firewall-cmd --add-rich-rule="rule family="ipv4" source address="141.101.64.0/18" port protocol="tcp" port="80" accept" ; firewall-cmd --add-rich-rule="rule family="ipv4" source address="108.162.192.0/18" port protocol="tcp" port="80" accept" ; firewall-cmd --add-rich-rule="rule family="ipv4" source address="190.93.240.0/20" port protocol="tcp" port="80" accept" ; firewall-cmd --add-rich-rule="rule family="ipv4" source address="188.114.96.0/20" port protocol="tcp" port="80" accept" ; firewall-cmd --add-rich-rule="rule fa | 
| set filelink=%1 | |
| set filecolor=%1.png | |
| ffmpeg -i %filelink% -r 24 -vf fps=24,scale=240:-1:flags=lanczos,palettegen -y %filecolor% && ffmpeg -v warning -i %filelink% -i %filecolor% -r 4 -lavfi fps=24,scale=240:-1:flags=lanczos[x];[x][1:v]paletteuse -y %filelink%.gif && del /F /S /Q %filecolor% | |
| exit | 
| set filelink=%1 | |
| set filedir=%1_ | |
| mkdir %filedir% | |
| ffmpeg -i %1 %filedir%\frame%%04d.png && gifski --fps 25 --quality 80 --quiet -o %filelink%.gif %filedir%\frame*.png && rmdir /s/q %filedir% | |
| exit | 
| #!/bin/bash | |
| NEW_IP=`curl ip.changeip.com|sed -e 's/<.*$//'` | |
| NOWTIME=`date` | |
| CURRENT_IP=`cat /var/tmp/current_ip.txt` | |
| LOG_FILE="/var/log/cloudflare_ddns.log" | |
| IP_FILE="/var/tmp/current_ip.txt" | |
| ZONE_ID='Domain Zone ID' | |
| LOGIN_MAIL='[email protected]' | |
| API_KEY='Global API Key' | |
| DDNS_ZONE='ddns-zone-key' | 
Npm Install express body-parser wol silly-datetime
npm install express body-parser wol silly-datetime --sava
sudo npm install pm2 -g
sudo pm2 start /volume1/web/node/pm2_config.json| location ~* /(xmlrpc.php)$ { | |
| if ($is_args = '') { | |
| rewrite ^(.*) http://127.0.0.1/ permanent; | |
| } | |
| # location ~ .*\.php?$args { | |
| fastcgi_pass 127.0.0.1:9000; | |
| fastcgi_index xmlrpc.php; | |
| fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/$fastcgi_script_name; | |
| include fastcgi_params; | |
| # } | 
| apm config set https-proxy socks5://127.0.0.1:1080 | 
| /** | |
| * Default Theme, v2. | |
| * | |
| */ | |
| /* Slight reset to make the preview have ample padding. */ | |
| #SearchPageBox { | |
| height: 40px; | |
| border: 1px solid #d7d7d7; | |
| border-radius: 6px; | |
| width: -moz-calc(100% - 2px); | 
现在网上下载 ADB,然后解压好。我打包的: http://pan.baidu.com/s/1jIdKJ1G
手机打开开发者 USB 调试,然后用 USB 线连接电脑授权调试。
然后运行 CMD输入下面的命令。
ADB所在所在目录\adb shell "settings put global captive_portal_server captive.v2ex.co"
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Donate</title> | |
| </head> | |
| <body> | |
| <input id="ppButton" class="ppButton" type="submit" border="0" name="button" alt="PayPal" value="Donate"> | |
| </body> | |
| </html> |