Page24 of 37 1 22 23 24 25 26 37
9 06 2010

Discuz! 音乐视频自动播放设置

#bigCat.NoteBook(" Comment.isBlank ")

discuz默认的音乐自动播放是关闭的,目的是防止音乐自动加载木马

编辑 include 目录内 discuzcode.func.php 文件

约 279 行 将
$autostart = 0; 改为 $autostart = 1;

9 06 2010

DDos - Deflate

#bigCat.Linux(" Comment.isNotBlank ")

http://deflate.medialayer.com/

History

MediaLayer was in need of a script to automatically mitigate (D)DoS attacks. The necessity started when MediaLayer was the target of a rather large, consistent attack originating from multiple IP addresses. Each IP would have a large amount of connections to the server, as shown as by:
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
It became a general practice for us to be blocking IPs with a large amount of connections, but we wanted to get this automated. Zaf created a script mitigate this kind of attack. We kept improving it to meet our own needs and eventually posted it on Defender Hosting's Forum. (D)DoS-Deflate is now recognized as one of the best ways to block a (D)DoS attack at the software level.

License Agreement

You can view a copy of the license agreement here.

Installation

wget http://www.inetbase.com/scripts/ddos/install.sh
chmod 0700 install.sh
./install.sh

Uninstalling

wget http://www.inetbase.com/scripts/ddos/uninstall.ddos
chmod 0700 uninstall.ddos
./uninstall.ddos

Version 0.6 | Change Log

  • whitelisting possible by adding IPs in /usr/local/ddos/ignore.ip.list
  • it uses this file to avoid banning the ip again (it was handling this differently and was a bit slower too)

Version 0.6 | Upgrade Procedure

It remains the same as last time (uninstall and reinstall the script), and you need to make changes to the conf to suit your preferences (The default values ban an ip with 150 connections (or more) for 600 seconds and run the script every minute)

Contacting Us

To get in touch with us you may simply e-mail zaf@vsnl.com.

7 06 2010

win7 配置 JDK path

#bigCat.NoteBook(" Comment.isBlank ")

不用JAVA_HOME classpath
直接给Path 附加一句
;D:\Program Files (x86)\Java\jdk1.6.0_20\bin
换成自己的jdk安装目录

6 06 2010

ssh 如何统计当前目录文件数

#bigCat.Linux(" Comment.isBlank ")

来源 http://ooxx.me/ssh-file-count.orz
很多主机暗地里会限制文件数量, 或有朝一日突发奇想想了解我的站有多少个文件捏?

只需要登录SSH运行如下命令
find . -type f -print |wc -l

虽然快餐式的命令很威武,但是要好好学Linux命令建议从基础开始,下面是解释
find 这是一个叫find的命令
空格
. 这个点表示当前目录
空格
-type f 这个type有8个值,其中 f 代表regular file
空格
-print 带这个参数为了把查找结果每行一个显示出来
空格
| 这根线,恩恩,它看起来像根JJ,但其实是个pipe
空格
wc 这个命令,厄... 这命令是用来显示新行,单词,比特数量的
-l 这个wc的参数相当于 --line 作用是显示总行数

总结成一句连贯的命令就是
在当前目录查找所有文件并把每行一个文件名的结果输出给wc
wc再数一下有多少行
也就是当前目录总的有多少文件数了

6 06 2010

RSS 订阅地址

#bigCat.NoteBook(" Comment.isBlank ")

甩了 if.vc 这个域名,以后都用 code.sh 了

好好整,俺自己的代码仓库, 有需要的修改 RSS 订阅地址为

http://feed.code.sh

Page24 of 37 1 22 23 24 25 26 37
Host: (miao) | Word: Press | Code: bigCat | Valid: HTML5