Submitted by 熊茂祥 on 2013, May 27, 10:10 PM
iPhone5 app store 加速代理
简介:本人为老婆解决iPhone5 app store而做的HTTP加速代理,希望老婆喜欢。也希望能造福其他正在为此烦恼的人。本文提供的HTTP代理由本人私人服务器所架设。
使用方法:
1.进入WIFI设置界面,选中自己的WIFI信号修改DHCP设置。
2.HTTP代理选自动
URL填:http://proxy.cat-home.org/apple.pac
3.进入app store测试吧,应该速度比之前有所改善,大概至少能有40-60K/S的速度。
原理介绍:
使用HTTP代理及缓存技术,对app store加载加速,可对曾经已经下载过的APP缓存,再次下载时会跳过苹果官方,直接由代理服务器将缓存传送给用户。
由于本代理服务器也在海外,所以虽然有加速效果,但是请不要拿本地速度衡量。
» 阅读全文
Tags: iphone5, app, store, 加速, 慢
技术文档 | 评论:0
| 阅读:26994
Submitted by 熊茂祥 on 2012, October 5, 11:33 AM
安装很简单,只用下面的一条命令,就可以了:
apt-get install lighttpd php5-cgi
安装完成后,还要设置lighttpd来使他支持php,用下面的命令启用php支持:
lighttpd-enable-mod fastcgi fastcgi-php
之后,运行:
/etc/init.d/lighttpd force-reload
lighttpd 就可以支持php了。
» 阅读全文
Tags: debian, lighttpd, php, 安装
技术文档 | 评论:0
| 阅读:28915
Submitted by 熊茂祥 on 2012, September 14, 11:51 AM
DDNS脚本自动绑定到默认路由的接口更新IP
:global ddnsuser "用户名"
:global ddnspass "密码"
:global ddnshost "域名"
:global gate [/ip route get [/ip route find static=yes active=yes dynamic=yes distance=1] gateway]
:global ddnsinterface {:put [/ip add get [find network=$gate] interface]}
:global ddnsip [ /ip address get [/ip address find interface=$ddnsinterface] address ]
/tool dns-update name=$ddnshost address=[:pick $ddnsip 0 [:find $ddnsip "/"] ] key-name=$ddnsuser key=$ddnspass
» 阅读全文
Tags: ros, adsl, 多线, ddns, 脚本
ROS | 评论:0
| 阅读:31567
Submitted by 熊茂祥 on 2012, September 14, 11:45 AM
映射脚本自动绑定到默认路由的接口更新IP
--------------对NAT规则备注名进行查找-----------------
:global adcmname "3389"
:global adgw [/ip route get [/ip route find static=yes active=yes dynamic=yes distance=1] gateway]
:global ip [/ip add get [find network=$adgw] address]
:global newip [:pick $ip 0 [:find $ip "/"]]
:global oldip [/ip fi nat get [/ip fi nat find comment=$adcmname] dst-address]
:if ($newip != $oldip) do={
:log info [/ip fi nat set [/ip firewall nat find comment=$adcmname] dst-address=$newip]
}
» 阅读全文
Tags: ros, adsl, 多线, 映射, 脚本
ROS | 评论:0
| 阅读:33494
Submitted by 熊茂祥 on 2012, August 4, 10:45 PM
#内网地址段改为自己的
/ip firewall address-list add address=192.168.1.0/24 disabled=no list=lan
/ip firewall mangle add action=add-src-to-address-list address-list=Online address-list-timeout=1m chain=prerouting comment=tongji disabled=no src-address-list=lan
/system scheduler
add comment=tongji disabled=no interval=3m name="\CD\B3\BC\C6" on-event="#\D7\EE\B4\F3\D1\AD\BB\B7\B4\CE\CA\FD\r\
\n:global rmaxlimit 5000\r\
\n:global r 0\r\
\n:global rn\r\
\n:global rs\r\
\n:global ravg\r\
\n:global rmax\r\
\n:if ([:len \$ravg] = 0) do={\r\
\n:set ravg 0\r\
\n:global rn 0\r\
\n:global rs 0\r\
\n:global rmax 0}\r\
\n:if (\$rs = \$rmaxlimit) do={\r\
\n:global rn \$ravg\r\
\n:global rs 1}\r\
\n:foreach b in=[/ip firewall add find list=\"Online\"] do={:set r (\$r+1)}\r\
\n:if (\$rmax < \$r) do={:set rmax \$r}\r\
\n:set rs (\$rs+1)\r\
\n:set rn (\$rn+\$r)\r\
\n:global ravg (\$rn / \$rs)\r\
\n:log warning (\"\B5\B1\C7\B0\D4\DA\CF\DF\BF\CD\BB\A7\BB\FA\" . \$r . \"\CC\A8,\C6\BD\BE\F9\D4\DA\CF\DF\BF\CD\BB\A7\BB\FA\"\
\_. \$ravg . \",\D7\EE\B8\DF\D4\DA\CF\DF\C0\FA\CA\B7\" . \$rmax . \"\CC\A8,\B5\B1\C7\B0\CD\B3\BC\C6\B4\CE\CA\FD\" . \$rs . \
\"\A1\A3\")" policy=reboot,read,write,policy,test,password,sniff,sensitive start-date=jan/01/1970 start-time=00:00:00
» 阅读全文
Tags: 统计, 在线, 人数, ros, 脚本
ROS | 评论:1
| 阅读:39633