现在网上下载 ADB,然后解压好。我打包的: http://pan.baidu.com/s/1jIdKJ1G
手机打开开发者 USB 调试,然后用 USB 线连接电脑授权调试。
然后运行 CMD输入下面的命令。
ADB所在所在目录\adb shell "settings put global captive_portal_server captive.v2ex.co"
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
# RewriteBase 是文件目录 | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
# RewriteRule 是映射到的实际文件 | |
RewriteRule . /index.php [L] |
body { | |
font-family: "Helvetica Neue", Ubuntu, "WenQuanYi Micro Hei", Helvetica, "Hiragino Sans GB", "Microsoft YaHei", "Wenquanyi Micro Hei", "WenQuanYi Micro Hei Mono", "WenQuanYi Zen Hei", "WenQuanYi Zen Hei", "Apple LiGothic Medium", "SimHei", "ST Heiti", "WenQuanYi Zen Hei Sharp", Arial, sans-serif !important; | |
} | |
div#Box_right, #pl_content_biztips, #plc_main>.WB_main_r, div[node-type="feed_spread"], #v6_pl_ad_bottomtip, #v6_pl_content_biztips {display:none !important;} | |
.W_func,div[feedtype="ad"], body .footer_adv {display: none !important} | |
body .send_weibo .input .input_detail { | |
width: -webkit-calc(100% - 14px); | |
width: calc(100% - 14px) !important; | |
} | |
body .WB_main_c {width: 99% !important;margin: 0 !important;} |
<!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> |
现在网上下载 ADB,然后解压好。我打包的: http://pan.baidu.com/s/1jIdKJ1G
手机打开开发者 USB 调试,然后用 USB 线连接电脑授权调试。
然后运行 CMD输入下面的命令。
ADB所在所在目录\adb shell "settings put global captive_portal_server captive.v2ex.co"
/** | |
* 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); |
apm config set https-proxy socks5://127.0.0.1:1080 |
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; | |
# } |
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 | |
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' |
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 |