![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
demonthiner
这个作者很懒,什么都没留下…
展开
-
Vim 中文文档
http://vcd.gro.clinux.org/原创 2005-11-29 15:09:00 · 567 阅读 · 0 评论 -
Store binary data to MySQL using escape_string in MySQLdb
mediumblob can store data less than 16M: mysql> desc images;+-------+------------+------+-----+---------+----------------+| Field | Type | Null | Key | Default | Extra |+-------+--原创 2008-12-02 15:00:00 · 739 阅读 · 0 评论 -
Fibonancci in bash via global variable
#!/usr/bin/env bashfib_total=0 function fib(){ if [ $1 -le 1 ] then fib_total=1 else fib `expr $1 - 1` let "fib_total *= $1" fi}fib 6echo $fib_total原创 2008-11-24 17:18:00 · 463 阅读 · 0 评论 -
Using where conditions in mysqldump command
mysqldump help: -w, --where=name Dump only selected records; QUOTES mandatory! Attention: QUOTES mandatory, or shell will not parse it correctly. eg:mysqldump -uroot -pyes test_db tb原创 2008-11-07 10:59:00 · 413 阅读 · 0 评论 -
Python script redirection detection, shell '<' or anonymous piple
msg = if sys.stdin.isatty(): print Console else: print Redirected msg = .join(sys.stdin.readlines()) sendResult(msg, Attention:原创 2008-10-10 18:19:00 · 367 阅读 · 0 评论 -
Can not find so for swat in Samba in Solaris? Try crle command to update runtime linking configuration.
1, using ldd to list dynamic dependencies of swat2, make sure all dependencies available, or even available but "version not found"3, if still can not visit swat using browser, edit /var/ld/ld原创 2008-10-09 15:56:00 · 361 阅读 · 0 评论 -
Disable compiling GTK2 for tshark on solaris10
GTK depends on many GNU libraries like GNU sed, glib, etc.If you dont want to use GUI, just for tshark , skip the GTK2 comiling. ./configure --disable-gtk2 && make && make installtime consu原创 2008-09-10 15:28:00 · 382 阅读 · 0 评论 -
selinux may block samba access at Fedora Core 5
If setting samba, but can not access directory in fc5, perhaps caused by selinux. By setting setenforce 0 in cmd line or in /etc/sysconfig/selinux permanently, accessing samba directory w原创 2008-09-05 10:47:00 · 393 阅读 · 0 评论 -
configuring_vmware_for_ide_rather_than_scsi_good_for_installing_linux
http://www.seopher.com/articles/configuring_vmware_for_ide_rather_than_scsi_good_for_installing_linux_原创 2008-09-04 12:49:00 · 341 阅读 · 0 评论 -
Regular expression in find command
find . -name core.[^a]* -exec ls -l {} /;find . -name core.[!a]* -exec ls -l {} /;find . -name core.*c* -exec ls -l {} /; find supportlimited expression format.原创 2008-09-02 17:40:00 · 377 阅读 · 0 评论 -
A way of special unix filename processing
Summary: Using inode to access such filesSteps: 1, ls -li * 2, find the inode number of wanted file, eg, 256298 3, using find command like: find . -inum 256298 -exec ls -l {} /;原创 2008-09-01 17:38:00 · 358 阅读 · 0 评论 -
Solaris 机器不足,解决方案
Windows机器安装Vmware, Vmware中安装Solaris, 从Solaris中创建多个Zone,问题解决。顺便提一句,使用samba可以加快主机与宿主机及zone虚拟机的访问,效率高,效果好。原创 2008-06-12 09:29:00 · 336 阅读 · 0 评论 -
Source insight 阅读python 代码 配置
A, download clf file from http://www.sourceinsight.com/public/languages/Python.CLFB, import and configuration 1. 选择 Options > Preferences。点击Languages 标签。 2. 点击 Import 按钮。选择和加载定原创 2008-08-28 14:16:00 · 3883 阅读 · 3 评论 -
Compile mysql in vmware
vmware should set memory larger than 512MB and configure set --with-low-memory option, or else vmware would core dump.原创 2008-06-03 14:30:00 · 326 阅读 · 0 评论 -
Installing samba in sol10
/etc/servicesswat 901/tcp # Samba Web Administration Tool /etc/inetd.confnetbios-ssn stream tcp nowait root /usr/sfw/sbin/smbd smbdnetbios-ns原创 2008-06-02 18:14:00 · 297 阅读 · 0 评论 -
Solaris IP configuration
ifconfig -a plumbfound a pcn0 device and then ifconfig -aifconfig pcn0 upifconfig pcn0 你要设的IP Modify /etc/hosts /etc/hostname.XXX原创 2008-06-03 10:42:00 · 300 阅读 · 0 评论 -
system resource monitor
monitor.pl#!/usr/bin/perl###monintor start####if($ARGV[0] eq "start"){ print "monitor start!/nwe are monitoring cpu,memory,iostat,prstat!/n"; $flag=1; while($flag==1){ $fname原创 2008-05-27 16:18:00 · 607 阅读 · 0 评论 -
Find proper JVM for STAF/STAX
ISSUE: ********************************************************************************* 20090401-17:15:00 - Start of Log for JVMName: STAFJVM1*** JVM Executable: java*** JVM Options : -Xmx384m **原创 2009-04-01 17:15:00 · 813 阅读 · 0 评论