
工具
anghlq
这个作者很懒,什么都没留下…
展开
-
SourceInsight使用技巧(转)
function StorePage(){d=document;t=d.selection?(d.selection.type!=None?d.selection.createRange().text:):(d.getSelection?d.getSelection():);void(keyit=window.open(http://www.365key.com/storeit.转载 2007-04-05 17:43:00 · 7508 阅读 · 1 评论 -
ssh-copy-id
$ssh-keygen -t rsa$ssh-copy-id -i ~/.ssh/id_rsa.pub user@server等同于:$ssh-keygen -t rsa$cat ~/.ssh/id_rsa.pub | ssh user@server "cat - >> ~/.s原创 2011-07-19 16:25:49 · 829 阅读 · 0 评论 -
getrlimit/setrlimit 编程方式的设置系统参数
(对应于使用shell内建命令ulimit) Linux系统调用--getrlimit/setrlimit函数详解 功能描述: 获取或设定资源使用限制。每种资源都有相关的软硬限制,软限制是内核强加给相应资源的限制值,硬限制是软限制的最大值。非授权调用进程只可以将其软限制指定为0~硬限制范围中的某个值,同时能不可逆转地降低其硬限制。授权进程可以任意改变其软硬限制。RLIM_INFI转载 2011-11-20 01:19:01 · 888 阅读 · 0 评论 -
使用expect和ssh远程执行命令的脚本
#!/usr/bin/expect -f exp_version -exit 5.0 if {$argc!=2} { send_user "usage: remote-exec command password\n" send_user "Eg. remote-exec \"ssh user@host ls\\; echo done\" password\n" send_user "or转载 2012-05-07 15:35:12 · 4439 阅读 · 0 评论 -
mysql状态监控
mysqladmin extended-status|grep -v "0 " mysql -t -u root SELECT a.schema_name db_name, IFNULL(ROUND((SUM(b.data_length)+SUM(b.index_length))/1024/1024,2),0.00) total_size_mb, IFNULL(ROUND(原创 2013-04-23 16:38:40 · 821 阅读 · 0 评论 -
监控所有网卡流量
cat /proc/net/dev|grep -v Inter|grep -v lo|grep -v face>netinfo.old.tmp sleep 1 cat /proc/net/dev|grep -v Inter|grep -v lo|grep -v face>netinfo.new.tmp cnt=`cat netinfo.new.tmp|wc -l` for((i=1; i原创 2013-04-23 16:37:58 · 951 阅读 · 0 评论 -
Crontab 的脚本安装方法
crontab -l>crontmp.txt echo "*/5 * * * * /usr/sbin/ntpdate x.x.x.x && /usr/sbin/hwclock --systohc">>crontmp.txt crontab crontmp.txt原创 2013-04-26 20:37:16 · 634 阅读 · 0 评论 -
pop和smtp配置
1. DNS查询是对方的邮件系统收到信之后,会反过来通过DNS系统查询发信域名的对应IP,或者发信IP的对应域名,看是不是 一致的,所以,为了通过这个验证,必须在本地的DNS上做好这三种记录,A记录,MX记录,IP反解析记录。 2. 微软的sender-id做了之后还要去微软网站登记一下,2-3天之后才会在hotmail中生效 3. 在本地用openssl做一对公私钥,公钥放在DN转载 2013-06-27 13:41:21 · 1466 阅读 · 0 评论