记忆不行,只能记录
收集
jquery的几个UI插件
七 4th
看到别人用ThickBox,去ThickBox官方看
http://jqueryui.com/demos/dialog/
http://colorpowered.com/colorbox/core/example1/index.html
http://fancybox.net/
chpasswd 批量修改linux用户密码
七 4th
AME
chpasswd – update password file in batch
SYNOPSIS
chpasswd [-e]
DESCRIPTION
chpasswd reads a file of user name and password pairs from standard input and uses this information to update a group of existing users. Without the -e switch, the passwords are expected to be cleartext. With the -e switch, the passwords are expected to be in encrypted form. Each line is of the format
user_name:password
The named user must exist. The supplied password will be encrypted as necessary, and the password age updated, if present.
This command is intended to be used in a large system environment where many accounts are created at a single time.
tmpfs文件系统
六 25th
tmpfs 就象虚拟磁盘(ramdisk)
# mount tmpfs /mnt/tmpfs -t tmpfs
更多 http://blog.donews.com/hackerstar/archive/2006/08/11/996142.aspx
nfs安装笔记
六 19th
需要2个东西
yum -y install nfs-utils portmap
设置
vi /etc/exports
/home/nfs 192.168.0.*(rw,sync,no_root_squash)
重启服务
service portmap restart service nfs restart
客户端:
mount -t nfs serverip:/home/nfs /mnt/nfs
参考:
http://soft.zdnet.com.cn/software_zone/2007/1010/543223.shtml
http://blog.csdn.net/heiyeshuwu/archive/2006/11/09/1374671.aspx
ssh远程文件传输命令scp
六 19th
scp 命令是 SSH 中最方便有用的命令了,试想,在两台服务器之间直接传送文件,仅仅用 scp 一个命令就完全解决了。 你可以在一台服务器上 以 root 身份运行 #scp servername:/home/ftp/pub/file1 . 这样就把另一台服务器上的文件 /home/ftp/pub/file1 直接传到本机器的当前目录下,当然你也可以用 #scp /tmp/file2 servername:/boot 把本机上的文件 /tmp/file2 送到另一台机器的 /boot 目录下。而且整个传送过程仍然是用 SSH 加密的。
转自:http://wenson.javaeye.com/blog/135571
Nginx For Cpanel and Apache
六 12th
http://www.silentstreet.net/sq/archives/nginx-for-cpanel-and-apache/
http://icodex.org/2010/02/nginx%E8%87%AA%E5%8A%A8%E5%AE%89%E8%A3%85%E8%84%9A%E6%9C%AC-for-cpanel/