杂七杂八
百度空间 | 百度首页 
 
文章列表
 
2009年11月10日 星期二 11:22

1. 打开/boot/grub/menu.lst文件,在启动的核心kernel那行最后加上: acpi=off noapic。

   其中:1) acpi=off 禁止了一些电源高级管理功能,对你的应用程序没有影响。

        2)noapic 改变了中断方式,对应用也没有影响。   pci=noapic
   详见:http://blog.chinaunix.net/u/25264/showart_545308.html

2. ethtool -K eth0 tso off

3. 重新装网卡驱动。
   rmmod r8169 && modprobe
 
2009年11月06日 星期五 21:08
改寫自 "Creating Your Own Server Stat Script in PHP" by Joni Carlton

<?php

    header("refresh: 60; url=" . $_SERVER['PHP_SELF']);

    $site = "localhost";

    $http = fsockopen($site, 80);
    $ftp = fsockopen($site, 21);

 
2009年10月29日 星期四 12:34

https://www.burst.net/

早上购买的VPS已经收到了,并且在使用中,效果还不错。

64 bytes from 64.191.99.91: icmp_seq=3 ttl=51 time=331 ms
64 bytes from 64.191.99.91: icmp_seq=4 ttl=51 time=368 ms
64 bytes from 64.191.99.91: icmp_seq=5 ttl=51 time=274 ms
64 bytes from 64.191.99.91: icmp_seq=6 ttl=51 time=277 ms
64 bytes from 64.191.99.91: icmp_seq=7 ttl=51 time=275 ms
64 bytes from 64.191.99.91: icmp_seq=8 ttl=51 time=274

 
2009年10月22日 星期四 09:27

昨晚安装个vsftpd,后来有个账户权限的问题没搞定就用 apt-get remove vsftpd 来移除了,今早发现 /etc/init.d/vsftpd 还在就 rm了。 后来发现 debian卸载软件是分 保留配置文件和彻底删除两个方式:

  • aptitude install foo bar-

    安装 foo 软件包并删除 bar 软件包。

  • aptitude remove bar

 
2009年10月21日 星期三 16:56

tang@inusr01p1 ods]$ for i in `cat new.ods`;do cat old.ods|grep $i > /dev/null ||echo $i ;done;

[leotang@inusr01p1 ods]$ for i in `cat new.ods`;do cat old.ods|grep $i > /dev/null ||echo $i ;done;
stoad01p5.smf1.mobitv
stocd01p5.smf1.mobitv
stocd02p5.smf1.mobitv
stocd03p5.smf1.mobitv
stocd04p5.smf1.mobitv
stocd05p5.smf1.mobitv
stocd06p5.smf1.mobitv
stocd07p5.smf1.mobitv
stocd08p5.smf1.mobitv
stoc

 
2009年10月21日 星期三 10:37

http://ttyrpld.sourceforge.net

Description

ttyrpld is a multi-os kernel-level tty logger (key- and screenlogger for ttys) with (a)synchronous replay supprt. It supports most tty types, including vc, bsd and unix98-style ptys (xterm/ssh), serial, isdn, etc. Being implemented within the kernel makes it unavoidable for the default user. It runs with no overhead

 
2009年10月21日 星期三 09:22

dd if=/dev/mem bs=1k skip=768 count=256 2>/dev/null | strings -n 8

很黄!很暴力!

http://cb.vu/unixtoolbox.xhtml   摘录

 
2009年10月21日 星期三 08:16

while [1 = 1]
do
#弹出光驱
eject
sleep 1
#收回光驱
eject -t
sleep 1
done
 
2009年10月20日 星期二 13:32
 
2009年10月19日 星期一 17:17

Now i have configure memory_limit in "/etc/php5/cli/php.ini" and cacti poller works

270 memory_limit = 128M      ; Maximum amount of memory a script may consume (32MB)

 
2009年10月13日 星期二 16:25

Sub ZapHyperlinks()
    Cells.Hyperlinks.Delete
    End Sub

解释下:

ALT+F11 进入 编辑环境 选择表格输入代码 F5执行 即可。。

 
2009年10月12日 星期一 15:21
 
2009年10月08日 星期四 20:54

debian:~# netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
FIN_WAIT2 1
SYN_RECV 7
TIME_WAIT 8
ESTABLISHED 218
LAST_ACK 9
SYN_SENT 1
FIN_WAIT1 16

debian:/home/scripts/perl/1# netstat -n |grep ^tcp |awk {'print $1 echo " " $6'} |sort -g|uniq -c
      1 tcp6 ESTABLISHED
      2 tcp CLOSING
    257 tcp ESTABLISHED
    

 
2009年10月06日 星期二 21:38
 
2009年10月06日 星期二 21:22

http://snowman.net/projects/ipt_recent/

Example #1:

# iptables -A FORWARD -m recent --rcheck --seconds 60 -j DROP
# iptables -A FORWARD -i eth0 -d 127.0.0.0/8 -m recent --set -j DROP

Here we are making a 'bad guy' out of anyone who tries to send data to 127.0.0.0/8 on our eth0 interface (which should never legitimately happen). The first packet will make it past the first rule and then be caught
 
     
 
最新评论
 
     
 
最近访客
 
 

Air_火

一起睇戏

水無月·真

lslab

王洪林lt

king_sanmao

张家口清水河

swiftsen
     
 
 
个人档案
 
loveflag
男, 27岁
上海 浦东新区 
上次登录:
16小时前
加为好友
 
   
 
留言板
 

图片
 

 

朋友,與你分享很棒的赚钱項目! 网路兼职详细说明都交给DVD替我们工作, 不需要"说服...
 
 

在家开店祝福您健康快乐,幸福,欢迎回访我的空间!
 
     
 
文章分类
 
 
 
 
 
 
 
Shell(20)
 
 
 
 
 
 
 
 
Centos(23)
 
 
 
 
 
 
 
 
 
0+1(0)
 
 
 
 
 
 
 
 
 
 
Arp(2)
 
Ftp(1)
 
 
 
 
Wifi(1)
 
 
 
 
Php(2)
 
 
 
 
 
Perl(2)
 
Voip(3)
 
 
 
 
 
Vps(1)
 
     
 
订阅我的空间
 
已有人次访问本空间
 
订阅RSS  什么是RSS?

您也想拥有这样的空间?请点此申请。
     


©2009 Baidu