Discuz! 音乐视频自动播放设置
#bigCat.NoteBook(" Comment.isBlank ")discuz默认的音乐自动播放是关闭的,目的是防止音乐自动加载木马
编辑 include 目录内 discuzcode.func.php 文件
约 279 行 将
$autostart = 0; 改为 $autostart = 1;
discuz默认的音乐自动播放是关闭的,目的是防止音乐自动加载木马
编辑 include 目录内 discuzcode.func.php 文件
约 279 行 将
$autostart = 0; 改为 $autostart = 1;
http://deflate.medialayer.com/
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.
You can view a copy of the license agreement here.
wget http://www.inetbase.com/scripts/ddos/install.sh
chmod 0700 install.sh
./install.sh
wget http://www.inetbase.com/scripts/ddos/uninstall.ddos
chmod 0700 uninstall.ddos
./uninstall.ddos
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)
To get in touch with us you may simply e-mail zaf@vsnl.com.
不用JAVA_HOME classpath
直接给Path 附加一句
;D:\Program Files (x86)\Java\jdk1.6.0_20\bin
换成自己的jdk安装目录
来源 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再数一下有多少行
也就是当前目录总的有多少文件数了