Phine Solutions web work notes

A good find about “find”

Filed under: linux goodies by 1.618 — August 21, 2007 11:59 am

“find” command, like a lot of other UNIX/LINUX commands, can be really powerful if used with the right options. This is an article about using “find” in some different and very useful ways.

dmiessler.com’s find article

mysql server tuning

Filed under: mysql by 1.618 — August 14, 2007 10:05 pm

VPS with 726M ram

—- starting my.cnf —

[safe_mysqld]
err-log=/var/lib/mysql/mysqld.log

[mysqld]
skip-networking
skip-innodb
skip-locking

log-slow-queries
long_query_time=3

#log-bin=fmrbinlog
#binlog-do-db=fmr_fmr

key_buffer = 128M
max_allowed_packet = 1M
table_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size = 16M
thread_concurrency = 2

[isamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M

—- ending my.cnf —-Â

Note: key_buffer and table_cache are shared by all connections; read_buffer is for each thread.

further adjusted key_buffer down to 128M based on the tuning-primer.sh recommendation.

show some settings:

mysql>show variables;

mysql>show status;

cvs – merging and resolving conflict

Filed under: cvs and subversion by 1.618 — August 2, 2007 1:31 pm

To merge a branch into a HEAD, simply go to the local sandbox for the mainline code, and run:

%cvs upd -jBUGGY_BRANCH

A HEAD can be merged into a branch too using the same method.

To search for the conflict, from the command line, run:

%grep -r “>>>>>” *

The result should be a list of files which have the “>>>>>” content. Most likely, indicating the CVS conflict.

©phinesolutions.com