#进入缓存目录
cd $OPENSHIFT_TMP_DIR
#下载需要的源码
wget http://nginx.org/download/nginx-1.11.4.tar.gz
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.39.tar.gz
wget https://www.openssl.org/source/openssl-1.1.0a.tar.gz
wget http://zlib.net/zlib-1.2.8.tar.gz
git clone https://github.com/cuber/ngx_http_google_filter_module
git clone https://github.com/yaoweibin/ngx_http_substitutions_filter_module
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
| adb shell appops set com.tencent.mm OP_READ_PHONE_STATE ignore | |
| adb shell appops set com.tencent.mm COARSE_LOCATION ignore | |
| adb shell appops set com.tencent.mm FINE_LOCATION ignore | |
| adb shell appops set com.tencent.mm RUN_IN_BACKGROUND ignore |
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
| #全局指令 | |
| LoadModule ssl_module /usr/lib/apache2/modules/mod_ssl.so | |
| LoadModule substitute_module /usr/lib/apache2/modules/mod_substitute.so | |
| #虚拟主机的指令* | |
| SSLProxyEngine On | |
| ProxyPass / https://username.wordpress.com/ | |
| ProxyPassReverse / https://username.wordpress.com/ | |
| ProxyPassReverseCookieDomain .wordpress.com yourdomain.sample | |
| AddOutputFilterByType INFLATE;SUBSTITUTE;DEFLATE text/html text/xml | |
| Substitute s|//username.wordpress.com|//yourdomain.sample|i |
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
| // ==UserScript== | |
| // @name Always google dot com | |
| // @description Find and replace Google DOT Country-TLD to Google DOT com | |
| // @namespace https://greasyfork.org/en/users/2871-spacedingo | |
| // @version 1.06 | |
| // @include http*://*.google.* | |
| // @exclude http*://*.google.com/* | |
| // @exclude *://*/_/chrome/newtab* | |
| // @grant none | |
| // @run-at document-start |
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/sh | |
| server_IP=12.34.56.78 | |
| curl 'http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest' | grep ipv4 | grep CN | awk -F\| '{ printf("%s/%d\n", $4, 32-log($5)/log(2)) }' > chnroute.txt | |
| iptables -t nat -N SHADOWSOCKS >/dev/null 2>&1 & | |
| iptables -t nat -A SHADOWSOCKS -d $server_IP -j RETURN | |
| iptables -t nat -A SHADOWSOCKS -d 0.0.0.0/8 -j RETURN | |
| iptables -t nat -A SHADOWSOCKS -d 10.0.0.0/8 -j RETURN |
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
| // ==UserScript== | |
| // @name Change to MAC OS User-Agent for v.qq.com | |
| // @version 1.0 | |
| // @description Uses MAC OS user agent, so v.qq.com can be html5 Played | |
| // @include *://v.qq.com | |
| // @copyright 2016, Lentin | |
| // @user-agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A | |
| // ==/UserScript== |
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
| #smartproxy config file | |
| #字符’#’用于注释 | |
| #参数每行一条,参数名称和值之间用空格分隔,使用”name value1 value2 … valueN”格式。 | |
| #同一参数名称可以在多行出现,系统会将其值自动合并成一个数组。 | |
| #TAG:session_name | |
| #设置VPN连接会话名称。默认值:无。非必须。 | |
| session_name smartproxy | |
| #TAG:welcome_info | |
| #设置VPN连接后的欢迎信息。默认值:无。非必须。 | |
| welcome_info Welcome to smartproxy! |
120.52.72.*/original-uri
ip 地址获取脚本
window.success = [];
function test() {
for(var idx=1;idx<255;idx++){
var el = document.createElement('img');
el.src = '//120.52.72.' + idx + '/41.media.tumblr.com/5cb6715c800c5b00969f33c162b317d1/tumblr_nzjh7dPKcD1ssbwqro1_540.png';
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
| var http = new XMLHttpRequest(); | |
| var anchors = document.getElementsByTagName("div"); | |
| for (i = 0; i < anchors.length; i++) { | |
| var mid = anchors[i].getAttribute("mid"); | |
| if (mid) { | |
| console.log("Deleting " + mid); | |
| var url = "/aj/mblog/del?ajwvr=6"; | |
| var params = "mid=" + mid; | |
| http.open("POST", url, false); | |
| //Send the proper header information along with the request |
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 | |
| if (isSet($_GET["host"])) | |
| { | |
| $host = $_GET["host"]; | |
| $ip = gethostbyname($host); | |
| if ($ip != $host) die ($ip); | |
| } | |
| echo "0.0.0.0"; | |
| ?> |