SysAdmin

共 249 篇文章。

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(R) 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.

阅读全文… ( 本文约 64 字,阅读大致需要 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 分钟 )

断网进行时:周四、周五、周六、周日……

• Life

有人在不停地催我,我有点急想骂那人,但终于还是忍住了,因为其实我也没有办法——爱谁谁吧,眼下尽快把毕业设计做完是第一位的,其他的全是瞎掰。我想起了老汪的那句「你得把A逼出屎来,然后A再把B逼出屎来,然后事情就办了」,这话最早还是出自liu8,但是,那什么,好像现在我是A,而网络中心是B,然而,恐怕断网并不是凭网络中心一己之力能够解决的,因为他们的工作人员最近几天也在满负荷运转。

学校已经断网这么多天了,真不知道那家公司在搞什么,在做什么,他们之前有计划没有,遇到了什么问题,解决到什么地步,打算再折腾多久,说得难听一点,是不是在拿学校的设备在练手:上千万人民币的项目,一家虽然不算太有名,但总还是有一些经验的公司,也是学校的老牌合作商,看过他们的投标书,应该还算是正规吧,应该也有相当多的施工经验吧,可是就是不知道怎么一到关键时刻就那么多意外,那么多状况。把设备调好了拿来,分阶段并行安装,出问题回退到前一阶段,用的着连着调这么久吗?

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