[linux]kill more than one process use ps aux grep awk
you can use ps aux ,grep find your program name
#ps aux | grep "prog_name"
peicheng 發表在 痞客邦 留言(0) 人氣(26)
buffer 的大小是 MAX_ARG_PAGES * "page 大小" --- 一般而言是 32 * 4k = 128k。
peicheng 發表在 痞客邦 留言(0) 人氣(134)
[linux]system argv maximum length
如何得知 system command line 的 argv 最大長度,
可以使用 getconf 去取得。
root@renode2[/var/log]{14:52}# getconf ARG_MAX
2621440
peicheng 發表在 痞客邦 留言(0) 人氣(105)
[git]git pull 遇到 error: Your local changes to the following files would be overwritten by merge:
有部分程式,更改了但是沒有commit 。
peicheng 發表在 痞客邦 留言(0) 人氣(58)
$ cat 1380704328894.log
!SESSION 2013-10-02 16:58:48.757 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.6.0_34
java.vendor=Sun Microsystems Inc.
peicheng 發表在 痞客邦 留言(0) 人氣(14)
peicheng@TW-PCLIAO:~
$ ssh-copy-id -i ~/.ssh/id_rsa.pub root@renode2
Warning: the RSA host key for 'renode2' differs from the key for the IP address '10.1.191.177'
Offending key for IP in /home/peicheng/.ssh/known_hosts:28
Matching host key in /home/peicheng/.ssh/known_hosts:78
Are you sure you want to continue connecting (yes/no)? yes
peicheng@TW-PCLIAO:~
$ ssh root@renode2
Warning: the RSA host key for 'renode2' differs from the key for the IP address '10.1.191.177'
Offending key for IP in /home/peicheng/.ssh/known_hosts:28
Matching host key in /home/peicheng/.ssh/known_hosts:78
Are you sure you want to continue connecting (yes/no)? yes
Last login: Wed Jul 10 11:54:56 2013 from remaster
rm the line number 28
peicheng 發表在 痞客邦 留言(0) 人氣(5)
想要重置mysql 內的 AUTO INCREMENT
可以使用 來重置 遞增數值。
ALTER TABLE TABLENAME AUTO_INCREMENT =1
peicheng 發表在 痞客邦 留言(0) 人氣(128)
在 mac 可以方便使用 divvy 來放大縮小 應用程式 成 grid顯示,
在linux 可以使用 ration 來達到這點。
onyxfish/ration
peicheng 發表在 痞客邦 留言(0) 人氣(8)
使用 puppet local mode 只需要
- sync your pp file
- puppet apply ppfile
可以減少網路溝通與Master slave 間的問題。
peicheng 發表在 痞客邦 留言(0) 人氣(5)
in centos
try
yum install python-devel
root@reservice[/tmp/pymmseg-cpp]{11:20}# python setup.py build
peicheng 發表在 痞客邦 留言(0) 人氣(35)