SysAdmin

共250篇文章。

Useful sed(1) regular expressions

• Cheatsheets

Source code cleanup:

sed -i '' -E s/\ \	/\	/g *.c *.h
sed -i '' -E s/^\ \ \ \ \ \ \ \ /\	/g *.c *.h
sed -i '' -E s/\	\ \ \ \ \ \ \ \ /\	\	/g *.c *.h
sed -i '' -E s/\ +\$//g *.c *.h
阅读全文…(本文约76字,阅读大致需要1分钟)

Two Powerful UNIX® command lines

• Cheatsheets

Top ten established HTTP connection from IP to our box (IP=127.0.0.1):

netstat -na | grep "127\.0\.0\.1\.80 " | grep ESTABLISHED | cut -c43- | cut -f1-4 -d'.' | sort | uniq -c | sort -nr | head -10

Merge FreeBSD-CURRENT changes to delphijfork:

retag `cvs -d /home/fcvs rdiff -rHEAD -rDELPHIJ_FORK_LASTMERGE src | grep Index: | awk '{print $2;}' | grep src`
参与评论

Apache2 RCng'ified

• SysAdmin

FreeBSD Apache2 port has been RCng’ifyed since 2.0.49_2. This will unify the behavior of ports more.

阅读全文…(本文约65字,阅读大致需要1分钟)

A firewall to cut all useful connection, good job

• Security

Not sure how did the corporation has designed the firewall system, it is simply - bogous and useless, and is fragile by design. All the design’s function is to keep the network out of being functional, not to make it a bit safer.

阅读全文…(本文约322字,阅读大致需要2分钟)

Bigger bin patch accepted by FreeBSD

• Development

It seems that FreeBSD community has reviewed and committed one of my bigger patch on sbin/syslogd, which was primarily obtained from OpenBSD. These changes are more or less “sync with OpenBSD”, which will increase security performance of FreeBSD.

阅读全文…(本文约107字,阅读大致需要1分钟)