工具链接:http://garphy.com/tool/mouseTest.html
- 支持任意鼠标按键;
- 监控鼠标按下、抬起时间,直观展示点击时长,点击间隔;
- 红色预警点击不足40ms的点击;
工具链接:http://garphy.com/tool/mouseTest.html
video套件小优化,电影界面标识已观看状态;
SSH登录NAS
sudo -i 切换到root状态
vi /usr/syno/synoman/webman/3rdparty/VideoStation/videostation2.js
查找
getWatchedInfo:
第一处函数,返回内容修改为:
return 1 === a.additional.watched_ratio ? SYNO.SDS.VideoStation2.Constant.CLASS.LASTWATCHED: “”
done.
参考网上经验,写了个WP文件权限设置脚本。方便部署迁移只用。
#!/bin/bash # $1 => wp_path if [ 0 -eq $# ]; then exit fi if [ ! -d "${1}" ]; then echo invalid path. exit fi cd ${1} if [ ! -d "./wp-content/" ]; then echo wordpress not found. exit fi chgrp www-data ./ -R chmod 644 ./ -R chmod 755 ./ find ./ -type d -exec chmod 755 {} \; find ./ -iname "*.php" -exec chmod 644 {} \; chmod 775 ./wp-content/ chmod 775 ./wp-content/plugins/ chmod 775 ./wp-content/themes/ find ./wp-content/themes/ -iname "*.php" -exec chmod 664 {} \; find ./wp-content/themes/ -iname "*.css" -exec chmod 664 {} \; chmod 644 ./wp-content/themes/index.php if [ -d "./wp-content/uploads" ]; then chmod 664 ./wp-content/uploads/ -R chmod 775 ./wp-content/uploads/ find ./wp-content/uploads/ -type d -exec chmod 775 {} \; fi if [ -d "./wp-content/upgrade" ]; then chmod 775 ./wp-content/upgrade/ fi echo done.
下载:http://itunes.apple.com/us/app/traffic-racer/id547101139?mt=8&uo=4
最近很喜欢玩Traffic Racer这款小游戏,在即将打完钱买顶级车的时候,我发现了这个秘技···
需要准备的工具:iFile,当然是要越狱的那个,没有的去Cydia里面装
秘技说明:
打开iFle,在这个地方:/var/mobile/Applications/Traffic Racer/Library/Preferences
(注:想在Applications下面看到APP名称,需要先到iFile设置里打开 显示应用程序名称)
找到一个文件: com.skgames.racer.plist
点击它,选择用属性表编辑器打开,找到一项:
_farrokh_persistent_totalMoney
就它了,想改多少钱就改成多少!!!
水星MW330R
Atheros AR7240 rev 1.2 (0x00c2) 400MHZ
DD-WRT v24-sp2 (11/21/10) std – build 15778
DD-WRT笔记
无线网络模式改为NG-Mixed后,频道宽度可选40MHz
高级设置中管制范畴设为United Stats,实际传输功率才会达到20dBm
天线增益5dBi
TX Antenna Chains可改为1+2+3,三根天线都发射信号
注:无线速率会自动随接入网卡速率而变化,只有当150M/300M无线网卡接入后,状态里的无线速率才会提高到200Mb/S以上
参考 http://zzsjlove.diandian.com/2012/04/buffalo-whr-g300n-ch-v2-%E5%88%B7openwrt/
端口转发无效的处理(参考):
在“管理”-“命令”中添加如下代码,并“保存为防火墙指令”:
insmod ipt_mark
insmod xt_mark
iptables -t mangle -A PREROUTING -i ! `get_wanface` -d `nvram get wan_ipaddr` -j MARK –set-mark 0xd001
iptables -t nat -A POSTROUTING -m mark –mark 0xd001 -j MASQUERADE
在添加“端口转发”时:源地址 “Source Net” 如果没有特殊定义,就直接留空 (不要填 0.0.0.0, 没用!!) :
php5.3.10的安装
下面以最新的php-5.3.10为例进行安装。
wget http://cn.php.net/distributions/php-5.3.10.tar.gz
tar -zxvf php-5.3.10.tar.gz
cd php-5.3.10
./configure –prefix=/usr/local/php –with-config-file-path=/usr/local/php/etc –with-mysql=/usr/local/mysql –with-mysqli=/usr/local/mysql/bin/mysql_config –with-iconv-dir –with-freetype-dir –with-jpeg-dir –with-png-dir –with-zlib –with-libxml-dir –enable-xml –disable-rpath –enable-bcmath –enable-shmop –enable-sysvsem –enable-inline-optimization –with-curl –with-curlwrappers –enable-mbregex –enable-fpm –enable-mbstring –with-mcrypt –with-gd –enable-gd-native-ttf –with-openssl –with-mhash –enable-pcntl –enable-sockets –with-ldap –with-ldap-sasl –with-xmlrpc –enable-zip –enable-soap –enable-tidy –enable-json
上面的具体参数可以使用./configure –help查看
make ZEND_EXTRA_LIBS=’-liconv’
make test
make && make install (此处最好分开做,因为make的时候会有报错出现。)
我在上面的make时就报了下面的错误
root/source/php-5.3.10/sapi/cli/php: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
make: *** [ext/phar/phar.php] Error 127
解决办法是(我的mysql安装目录是/usr/local/msyql,这个视自己的mysql安装路径而定。)
ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib/
64位系统应使用下面的这行
ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib64/
cp php.ini-production /usr/local/php/etc/php.ini
cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
cp sapi/fpm/php-fpm.conf /usr/local/php/etc/php-fpm.conf
修改php.ini文件和php-fpm文件中参数,可以手动更改也可以用下面的sed命令更改
sed -i ‘s#short_open_tag = Off#short_open_tag = On#g’ /usr/local/php/etc/php.ini
sed -i ‘s#;pid = run/php-fpm.pid#pid = run/php-fpm.pid#g’ /usr/local/php/etc/php-fpm.conf
sed -i ‘s#pm.max_children = 5#pm.max_children = 32#g’ /usr/local/php/etc/php-fpm.conf
sed -i ‘s#pm.start_servers = 2#pm.start_servers = 16#g’ /usr/local/php/etc/php-fpm.conf
sed -i ‘s#pm.min_spare_servers = 1#pm.min_spare_servers = 8#g’ /usr/local/php/etc/php-fpm.conf
sed -i ‘s#pm.max_spare_servers = 3#pm.max_spare_servers = 32#g’ /usr/local/php/etc/php-fpm.conf
sed -i ‘s#;pm.max_requests = 500#pm.max_requests = 120#g’ /usr/local/php/etc/php-fpm.conf
关于php-fpm几个重要参数的调整方面具体可以参看我的另一篇日志:http://www.361way.com/php-fpm/890.html 另外php官方也给出了其中所有参数项的解释说明,具体见http://www.php.net/manual/en/install.fpm.configuration.php
设置开机启动
chmod 755 /etc/init.d/php-fpm
chkconfig –add php-fpm
/etc/init.d/php-fpm start
至此,php的安装完毕。
最后可以再安装一些php的扩展包和开户php加速(具体软件包可以视网上的最新版进行安装):
tar zxvf memcache-2.2.5.tgz
cd memcache-2.2.5/
/usr/local/php/bin/phpize
./configure –with-php-config=/usr/local/php/bin/php-config
make
make install
cd ../
tar jxvf eaccelerator-0.9.6.1.tar.bz2
cd eaccelerator-0.9.6.1/
/usr/local/php/bin/phpize
./configure –enable-eaccelerator=shared –with-php-config=/usr/local/php/bin/php-config
make
make install
cd ../
tar zxvf PDO_MYSQL-1.0.2.tgz
cd PDO_MYSQL-1.0.2/
/usr/local/php/bin/phpize
./configure –with-php-config=/usr/local/php/bin/php-config –with-pdo-mysql=/usr/local/mysql
make
make install
cd ../
tar zxvf ImageMagick.tar.gz
cd ImageMagick-6.5.1-2/
./configure
make
make install
cd ../
tar zxvf imagick-2.3.0.tgz
cd imagick-2.3.0/
/usr/local/php/bin/phpize
./configure –with-php-config=/usr/local/php/bin/php-config
make
make install
cd ../
修改php.ini文件
手工修改:查找/usr/local/php/etc/php.ini中的extension_dir = “./”
修改为extension_dir = “/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/”
并在此行后增加以下几行,然后保存:
extension = “memcache.so”
extension = “pdo_mysql.so”
extension = “imagick.so”
再查找output_buffering = Off
修改为output_buffering = On
再查找; cgi.fix_pathinfo=0
修改为cgi.fix_pathinfo=0,防止Nginx文件类型错误解析漏洞。
配置eAccelerator加速PHP:
mkdir -p /opt/webserver/eaccelerator_cache
vi /usr/local/php/etc/php.ini
在php.ini配置文件的最末尾,加上以下配置信息:
[eaccelerator]
zend_extension=”/usr/local/php/lib/php/extensions/eaccelerator.so”
eaccelerator.shm_size=”64″
eaccelerator.cache_dir=”/opt/webserver/eaccelerator_cache”
eaccelerator.enable=”1″
eaccelerator.optimizer=”1″
eaccelerator.check_mtime=”1″
eaccelerator.debug=”0″
eaccelerator.filter=””
eaccelerator.shm_max=”0″
eaccelerator.shm_ttl=”3600″
eaccelerator.shm_prune_period=”3600″
eaccelerator.shm_only=”0″
eaccelerator.compress=”1″
eaccelerator.compress_level=”9″
php的安全性设置:
找到:;open_basedir =
修改为:open_basedir = .:/tmp/ #防止php木马跨站,重要!!
找到:disable_functions =
修改为:disable_functions = passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server,escapeshellcmd,dll,popen,disk_free_space,checkdnsrr,checkdnsrr,getservbyname,getservbyport,disk_total_space,posix_ctermid,posix_get_last_error,posix_getcwd, posix_getegid,posix_geteuid,posix_getgid, posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid, posix_getppid,posix_getpwnam,posix_getpwuid, posix_getrlimit, posix_getsid,posix_getuid,posix_isatty, posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid, posix_setpgid,posix_setsid,posix_setuid,posix_strerror,posix_times,posix_ttyname,posix_uname
#列出PHP可以禁用的函数,如果某些程序需要用到这个函数,可以删除,取消禁用。
找到:;date.timezone =
修改为:date.timezone = PRC
找到:expose_php = On
修改为:expose_php = OFF #禁止显示php版本的信息
找到:display_errors = On
修改为:display_errors = OFF #关闭错误提示
以上,大家可以自个去ping下哪个快;
同时用加速器及VPN,可以选购对应地区的服务商;
方法一:取巧
以超级玛里奥[地址:http://www.4399.com/flash/1651.htm]这个游戏为例。
页面上可以可以找到一个全屏游戏的按钮。
点开,把地址复制出来,你就发现Flash地址它就在那里~
http://www.4399.com/flash/swf.htm?gamepath=http://s1.4399.com:8080/4399swf/upload_swf/ftp/20050509/16.swf&gamemark=1|0|0&gamename=%B3%AC%BC%B6%C2%EA%C0%EF%B0%C2
标红的部分就是实际flash地址了,搞定!
方法二:必杀技
大名鼎鼎的Google公司出品的Chrome浏览器应该不少人用过吧。除了浏览速度最快这个优点之外,它还有个不为人知的秘密:就是集成了一些小工具,比如我们接下来要用到的嗅探器。
1. 没装的,需要先下载Chrome和Flash插件:Chrome官方下载、Flash插件官方下载
2. 都装好后,启动chrome ,输入:
chrome://net-internals/#events
启动嗅探器,在Filter里输入
.swf
3. 然后新开标签,打开任何一个带有flash的页面,比如这个愤怒的小鸟网页版[地址:http://www.4399.com/flash/52134.htm];
4. 切换到嗅探器标签,随着页面加载所有的flash地址都会列出来,挨个复制地址打开,直到找到你要的那个。
双击链接,Ctrl+C复制,然后就丢讯雷下吧!
5. 搞定!把文件或地址给那位女生吧,心里是不是非常爽!
聪明的同学,应该可以举一反三,下载各种文件•••这里就点到为止~
方法三:影音嗅探专家
不想再转个浏览器的可以用这个软件,下载地址:http://www.onlinedown.net/soft/36157.htm
不过建议使用chrome。
先看截图:
功能:
版本:2.4
更新说明:
Firefox 10+Greasemonkey/Chrome 19 + Tampermonkey beta 下测试通过
最后,还有人不知道任务系统页面地址么···好吧,给你:http://act.wot.kongzhong.com/
统计时间 | 2011/12/23 |
统计口径 | 总场次大于100的玩家 |
样本量 | 27353 |
统计数据: | |
南北比例 | 2:1 |
坦克数量比例 | S:D:M = 13:14:8 |
胜率 | 50.5% |
不败比率 | 53.5% |
平率 | 3.0% |
存活率 | 28.2% |
场均杀伤 | 854 |
场均击毁 | 0.9 |
场均发现 | 1.2 |
场均占领 | 0.9 |
场均防守 | 0.7 |
场均经验 | 523 |
命中率 | 56.7% |
S系车胜率 | 50.2% |
D系车胜率 | 50.6% |
M系车胜率 | 51.0% |
C系车胜率 | 54.4% |
I级车胜率 | 51.3% |
II级车胜率 | 51.0% |
III级车胜率 | 50.1% |
IV级车胜率 | 49.3% |
V级车胜率 | 50.5% |
VI级车胜率 | 50.4% |
VII级车胜率 | 50.5% |
VIII级车胜率 | 51.1% |
IX级车胜率 | 51.0% |
X级车胜率 | 50.8% |
轻坦胜率 | 50.2% |
中坦胜率 | 51.5% |
重坦胜率 | 49.1% |
反坦胜率 | 52.0% |
火炮胜率 | 49.6% |
级别 | 阵营 | 坦克 | 总体胜率 |
1 | D | 早期试验车 | 50.5% |
1 | M | T1科林汉姆 | 52.6% |
1 | S | MS-1 | 51.0% |
2 | D | II号坦克 | 50.8% |
2 | D | 38H735(f)型 | 56.5% |
2 | D | Pz35t | 52.0% |
2 | M | M2轻型 | 53.2% |
2 | M | T2轻型 | 51.9% |
2 | S | T-26 | 49.1% |
2 | S | BT-2 | 50.6% |
3 | D | III号坦克A | 48.0% |
3 | D | II号L山猫 | 49.1% |
3 | D | T-15 | 52.3% |
3 | D | 38(t)型 | 48.7% |
3 | D | II号-J | 54.2% |
3 | M | M3斯图亚特 | 49.7% |
3 | M | M22蝉式 | 54.3% |
3 | S | T-46 | 48.6% |
3 | S | BT-SV | 52.3% |
3 | S | T-127 | 57.2% |
3 | S | BT-7 | 47.1% |
3 | S | M3斯图亚特(苏) | 46.8% |
4 | D | VK1602 | 50.7% |
4 | D | Pz38NA | 48.4% |
4 | M | M5斯图亚特 | 49.6% |
4 | S | 瓦伦丁 | 49.7% |
4 | S | A-20 | 47.1% |
4 | S | T-50 | 52.1% |
5 | D | VK2801 | 54.1% |
5 | M | M24霞飞 | 55.7% |
5 | S | T-50-2 | 55.9% |
级别 | 阵营 | 坦克 | 总体胜率 |
2 | M | T2中型 | 49.2% |
3 | D | S35 739 (f) | 51.9% |
3 | M | M2中型 | 49.5% |
4 | D | III号坦克 | 48.4% |
4 | D | V/IV号坦克Alpha | 47.9% |
4 | M | M3格兰特 | 48.9% |
4 | S | A-32 | 49.1% |
4 | S | T-28 | 48.2% |
5 | D | IV号坦克 | 51.0% |
5 | D | T-25 | 48.8% |
5 | D | III/IV号坦克 | 48.1% |
5 | M | M4A2E4 | 47.3% |
5 | M | 公羊II | 50.7% |
5 | M | M4谢尔曼 | 51.7% |
5 | M | M7 | 47.9% |
5 | S | 玛蒂尔达 | 48.8% |
5 | S | T-34 | 48.8% |
6 | D | VK3601H | 52.6% |
6 | D | VK3001H | 51.3% |
6 | D | VK3001P | 49.9% |
6 | D | IV/V号坦克 | 49.8% |
6 | M | M4A3E8谢尔曼 | 51.4% |
6 | M | M4A3E2小飞象 | 53.7% |
6 | S | T-34-85 | 50.6% |
7 | D | VK3002DB | 53.1% |
7 | D | 黑豹 | 52.5% |
7 | M | T20 | 53.0% |
7 | S | T-43 | 51.8% |
7 | S | KV-13 | 50.4% |
8 | C | T-59 | 54.4% |
8 | D | 黑豹II | 53.6% |
8 | M | M26潘兴 | 54.3% |
8 | M | T23 | 51.7% |
8 | S | T-44 | 51.9% |
9 | D | E-50 | 52.2% |
9 | M | M46巴顿 | 54.2% |
9 | S | T-54 | 52.4% |
级别 | 阵营 | 坦克 | 总体胜率 |
4 | D | B2 | 51.7% |
5 | M | T-14 | 45.5% |
5 | M | T1重型 | 47.3% |
5 | S | 丘吉尔 | 44.3% |
5 | S | KV | 50.6% |
5 | S | KV-220 | 48.0% |
6 | M | M6 | 46.8% |
6 | S | KV-3 | 48.0% |
6 | S | KV-1S | 47.4% |
7 | D | 虎式 | 47.3% |
7 | D | 虎(P) | 49.9% |
7 | M | T29 | 50.6% |
7 | S | IS | 48.5% |
8 | D | 虎王 | 49.2% |
8 | D | 狮式 | 48.0% |
8 | D | VK4502A | 49.2% |
8 | M | M6A2E1 | 49.2% |
8 | M | T32 | 50.7% |
8 | S | KV-5 | 47.2% |
8 | S | IS-3 | 48.3% |
9 | D | E-75 | 50.3% |
9 | D | VK4502P | 47.7% |
9 | M | T34 | 47.0% |
9 | S | IS-4 | 49.1% |
10 | D | 鼠式 | 51.9% |
10 | D | E-100 | 52.4% |
10 | M | T30 | 50.2% |
10 | S | IS-7 | 50.0% |
级别 | 阵营 | 坦克 | 总体胜率 |
2 | D | I型突击炮 | 50.9% |
2 | M | T18 | 53.7% |
2 | S | AT-1 | 51.7% |
3 | D | 黄鼠狼II | 55.6% |
3 | M | T82 | 53.9% |
3 | S | SU-76 | 50.1% |
4 | D | 追猎者 | 49.5% |
4 | M | T40 | 52.2% |
4 | S | SU-85B | 49.8% |
5 | D | III号突击炮 | 50.5% |
5 | M | M10狼獾 | 51.1% |
5 | S | SU-85 | 51.8% |
6 | D | IV号歼击车 | 50.5% |
6 | M | M36杰克逊 | 52.4% |
6 | S | SU-100 | 52.0% |
7 | D | 猎豹 | 53.0% |
7 | M | T25_AT | 53.9% |
7 | S | SU-152 | 52.0% |
8 | D | 斐迪南 | 53.4% |
8 | M | T28 | 51.2% |
8 | S | ISU-152 | 52.4% |
9 | D | 猎虎 | 51.1% |
9 | M | T95 | 52.2% |
9 | S | 704工程 | 53.2% |
级别 | 阵营 | 坦克 | 总体胜率 |
2 | D | 野牛 | 48.6% |
2 | M | T57 | 51.8% |
2 | S | SU-18 | 47.9% |
3 | D | 黄蜂 | 48.7% |
3 | D | 野牛II | 49.0% |
3 | M | M37 | 48.6% |
3 | S | SU-26 | 51.1% |
4 | D | 蟋蟀 | 50.2% |
4 | M | M7牧师 | 49.0% |
4 | S | SU-5 | 50.0% |
5 | D | 野蜂 | 49.8% |
5 | M | M41 | 50.3% |
5 | S | SU-8 | 50.1% |
6 | D | 黑豹自行火炮 | 50.5% |
6 | M | M12 | 49.6% |
6 | S | S-51 | 49.0% |
6 | S | SU-14 | 49.5% |
7 | D | 虎式自行火炮 | 48.4% |
7 | M | M40 | 50.7% |
7 | S | 212工程 | 49.9% |
8 | D | Gw Typ E | 48.7% |
8 | M | T92 | 47.6% |
8 | S | 261工程 | 48.8% |