存档

2008年3月 的存档

BT 割舍的无奈

2008年3月28日

内部网里都是BT信号,显得不干净 o(∩_∩)o… 没办法 要不都封了~ 再说吧~

技术路径

webanizer 还是很方便的

2008年3月28日

日志分析~如题~

技术路径

终于会展基本功能已经完成了

2008年3月28日

如题~

项目路径

WordPress:CodeHighlighterPlugin 备案

2008年3月28日

Put the code snippet to pre tag.
Add the lang attribute to the pre tag like the following.

Add the lineno attribute to the pre tag after the lang tag like the following if you want to display line numbers. The number in the lineno tag becomes a start line number. There is no default value for the start line number. So you must supply the value to the lineno tag.

If you do not add lang attribute, the pre tag is handled normally.
If you want to have border, add the style like the following to your .css file.
pre { border: 1px dotted #ccc; padding: 0.2em 0.5em; }
You can use following languages in lang.
abap, actionscript, ada, apache, applescript, asm, asp, autoit, bash, blitzbasic, bnf, c, c_mac, caddcl, cadlisp, cfdg, cfm, cpp-qt, cpp, csharp, css-gen, css, d, delphi, diff, div, dos, dot, eiffel, fortran, freebasic, genero, gml, groovy, haskell, html4strict, idl, ini, inno, io, java, java5, javascript, latex, lisp, lua, m68k, matlab, mirc, mpasm, mysql, nsis, objc, ocaml-brief, ocaml, oobas, oracle8, pascal, per, perl, php-brief, php, plsql, python, qbasic, rails, reg, robots, ruby, sas, scheme, sdlbasic, smalltalk, smarty, sql, tcl, text, thinbasic, tsql, vb, vbnet, vhdl, visualfoxpro, winbatch, xml, xpp, z80

技术路径, 生活路径

定时更新服务器日志脚本(原创)

2008年3月28日
DATE=`date +%Y-%m-%d_%Hh%Mm`
DATEACCESS=$DATE'_access.log'
DATEERROR=$DATE'_error.log'
echo stoping lighttpd...
echo mv lighttpd access error ... to ... [$DATEACCESS] [$DATEERROR]
mv /others/lighthttpd/logs/access.log /others/lighthttpd/logs/$DATEACCESS
mv /others/lighthttpd/logs/error.log /others/lighthttpd/logs/$DATEERROR
killall lighttpd
echo starting lighttpd...
/others/lighthttpd/sbin/lighttpd -f /others/lighthttpd/conf/lighttpd.conf

再修改crontab文件

技术路径