wangxe
wangxe · 共 9 篇文章
健康色
这是我在网上看到的,昨天按照下面的方法试了下,感觉还可以,各位经常使用电脑的XDJM们不妨一试! 一 个朋友前一段时间因为常常加班导致眼睛过度疲劳得了干眼症,大夫建议他电脑屏幕不要用白色,因为白色对眼睛的刺激是最大的。像我们这样整天对着电脑干活 的,也应该注意一下。其实,只要稍微设置一下,就能让你电脑上的窗口从白花花的颜色变成淡淡的绿色。设置方法如下:在桌面点右键选“属性” (properties),接着点“外观”(appearance),点右下角的“高级”(advanced),然后在“项目”(items)的下拉菜单 里选“窗口” (windows),再点它右侧的下拉菜单“颜色”(color…
2011-10-20 14:01 · 评论(0)
如何用python subprocess module
如何用python subprocess module http://jimmyg.org/blog/2009/working-with-python-subprocess.html
2010-01-15 15:14 · 评论(0)
Top的几个交互命令
F: 按某列排序 f: 显示或不显示某列 O/o:列的从左向右的显示顺序。O向左移动,o向右移动。 列的对应字符: a: PID = Process Id b: PPID = Parent Process Pid c: RUSER = Real user name d: UID = User Id e: USER = User Name f: GROUP = Group Name g: TTY = Controlling Tty h: PR = Priority i: NI = Nice value j: P = Last used cpu (SMP) * K: %CPU = CPU usa…
2009-12-04 16:02 · linux · 评论(0)
一篇解释Linux proc 文件系统很好的文档
http://www.kernel.org/doc/Documentation/filesystems/proc.txt 比如/proc/stat
2009-11-12 10:49 · linux · 评论(0)
用iostat和vmstat监控磁盘性能
vmstat vmstat提供的数据是基于系统启动后到目前计算的,无法给出当前io运行的统计数据 Options Option Explanation -D This displays Linux I/O subsystem total statistics. This option can give you a good idea of how your I/O subsystem is being used, but it won't give statistics on individual disks. The statistics given are the totals sinc…
2009-11-11 14:11 · linux · 评论(0)
tcpdump用法
Options: -s <length>: Grap the packet with the specified length. default is 96 bytes -A: print data in ASCII format -X: print data in Hex and AscII format. -i <interface> Examples: tcpdump -As 2048 -i eth1 tcp port 80 and host 10.32.73.41
2009-11-06 13:59 · linux · 评论(0)
如何更换openldap的baseDN
转载自 http://blog.xupeng.me/2009/08/09/change-base-dn-in-openldap/ Stop the OpenLDAP server /etc/init.d/slapd stop Use slapcat to dump the database slapcat -l backup-openldap.ldif The OpenLDAP database will be dumped to file backup-openldap.ldif Use sed or something else to replace the default DN “dc…
2009-11-06 12:09 · ldap · 评论(0)
LDAP Basic
LDAP Basic Concepts What is LDAP LDAP stands for Ligthweight Directory Access Protocol. LDAP protocol is a message-oreiented protocol. LDAP Protocol Operations LDAP has nine protocol operations, which can be divided into 3 categories: Interrogation operations: search, compare. Update operations: ad…
2009-11-06 12:05 · ldap · 评论(0)
Vim Tips
* .vimrc example " Use Vim settings, rather then Vi settings (much better!). " This must be first, because it changes other options as a side effect. set nocompatible " set indent for c and cpp set cindent set shiftwidth=4 " set the space number of a tab set tabstop=4 " make tab convert to space. s…
2009-11-06 12:01 · linux · 评论(0)