System information

August 27th, 2009

http://www.cyberciti.biz/tips/freebsd-display-information-about-the-system.html

Create archive

August 25th, 2009

Zip:

zip <zip file name> <file or directory to be compressed>
Ex. Directory and subdirectories: zip -r test.zip *

Use unzip to extract archive:
Ex: unzip test.zip

Windows DHCP node type

August 18th, 2009

Set to hybrid:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters]
“DhcpNodeType”=8

MySQL performance tuning

August 10th, 2009

Manual:

http://habrahabr.ru/blogs/mysql/66684/#habracut

Utility:
http://www.transcendlinux.com/mysql-performance-tuning

Crontab syntax

August 4th, 2009

field     allowed values
—–     ————–
minute     0-59
hour         0-23
day of month     1-31
month     1-12 (or names)
day of week     0-7 (0 or 7 is Sun, or use names)

string       meaning
——       ——-
@reboot       Run once, at startup.
@yearly       Run once a year, “0 0 1 1 *”.
@annually       (sames as @yearly)
@monthly       Run once a month, “0 0 1 * *”.
@weekly       Run once a week, “0 0 * * 0″.
@daily       Run once a day, “0 0 * * *”.
@midnight       (same as @daily)
@hourly       Run once an hour, “0 * * * *”.

Executing Lynx from crontab

0 14  * * 5 lynx -dump http://localhost/cron.php > /dev/null

Optimizing MySQL

August 4th, 2009

Partitions:

http://habrahabr.ru/blogs/webdev/66151/