2004-09-01ãã1ã¶æéã®è¨äºä¸è¦§
便å©ããï¼
rubyã§XMLãèªã¿è¾¼ããµã³ãã«ï¼ #!/usr/bin/ruby require "rexml/document" def parse(element) case element.name when "tag" puts "tag: #{element.text}" else element.each { |e| if e.class == REXML::Element then # å帰å¦ç puts "elem: #{element.nâ¦
scriptãæ¸ãã¨ãã¯æ®æ®µã¯ bash + sed + awk ãªã®ã§ï¼ ãã¾ã« ruby ã使ãã¨åºæ¬çãªã¨ãã㧠google ã®ãä¸è©±ã«ãªã£ã¦ããã¾ãï¼å¹çæªãã®ã§ï¼ãã®éã¡ã¢ã£ã¦ç½®ãï¼ if å¼ then else endif å¼ then elsif endwhile å¼ endcase å¼ when when else endstringâ¦
é¨å±ã®æ¨¡æ§æ¿ãã¨ãããã¨ã§ï¼ãã·ã³ã移åãããï¼é ç·ãããç´ãã§ä¸æ¥ãã¤ã¶ããï¼ããããã®å¾ï¼ä½æ¥ãã·ã³ã§Xãèµ·åããªããªãï¼ããããæ ¼éããçµæï¼ãªãã¨ã°ã©ããã亡ããªãã§ãããã¨ãå¤æï¼Quadoro 400XL ã ã£ãã®ã«â¦æ®å¿µï¼
ã§ï¼ããããé¢é£URLãè¦ã¦ãããï¼æ軽ã§å®ä¾¡ãªãããã販売ããã¦ãããã¨ãç¥ãï¼http://optimize.ath.cx/mini_ezusb/ http://optimize.ath.cx/shopv2_2/chuumon.html#miniezusbããï¼ä»ã®ä»äºçµãã£ã¦æã空ãããï¼ã¾ãå·¥ä½ããããªãï¼
http://www.geocities.jp/kwhr0/hard/pc8001.htmlãããè¨ç»ã â¦ã¨æã£ããï¼ããå®æãã¦ããï¼ï¼ï¼ãããã
/homeã¨/varã¨/etcã®ä¸ã ãããã¯ã¢ããåãã°ããå ´å㯠$ rsync -Ra --exclude-from=/path/to/exclude backup.source:/ /mnt/backupdirã¨ãã¦ï¼ /path/to/exclude ã§ï¼ä»¥ä¸ã®ãããªè¨è¿°ãè¡ãï¼ + /home/ + /etc/ + /var/ - *å é¨åä½ãæ³åããã«ï¼ãã£ã¬â¦
"-kkv" $Id:$ãªã©ãå±éãã "-kk" $Id:$ãªã©ãå±éããªã $ cvs update -kkv $ cvs update -kk
branch ãä½ã $ cvs tag -b branch-hoge branch ã§ä½æ¥ãã $ cvs update -r branch-hoge branch ã§ã®å¤æ´ã trunk ã«æã£ã¦ãã trunk å´ã§ $ cvs update -kk -j branch-hoge ããã§ï¼branch-hoge ããï¼ branch-hoge ã®ææ°çã¾ã§ã®å·®ã trunk å´ã«é©ç¨ãâ¦
man 3 wordexp ã使ãï¼~/image/* ã«ããããããªã¹ããåãå ´å㯠wordexp ã使ãã°è¯ããããï¼ #include <wordexp.h> int main(int argc, char *argv[]) { wordexp_t exp; int flags = 0; int ret; ret = wordexp("~/image/", &exp, flags); if (0 == ret){ // succe</wordexp.h>â¦
ãã¿ã¼ã³ã«ããããããã¡ã¤ã«åãè¦ã¤ããï¼ man 3 glob #include <glob.h></glob.h>
AC_LANG_PUSH([C++]) AC_CHECK_HEADERS(hoge/fuga.hpp) AC_LANG_POP([C++])
詳細ã¯ï¼man libtool ã«ããããæ¸ãã¦ããï¼ dnl current:revision:age dnl change (without API) = c:r+1:a dnl change API = c+1:0:a dnl add API = c+1:0:a+1 dnl remove API = c+1:0:0
qmail ã daemontools ã® svc çµç±ã§èµ·åããã®ãã¢ãªãªã®ã ãã©ï¼redhatç³»ã«æµ¸ã£ã¦ããèªåã¨ãã¦ã¯ /etc/init.d/qmail startã§ï¼qmail ãèµ·åãããï¼ ããã§ï¼ daemontools ãã multilog ã ãã¤ã³ã¹ãã¼ã«ããæ¹éã§ä½æ¥ãè¡ãï¼ã¾ãï¼http://cr.yp.to/dâ¦
http://inter7.com/qmailmrtg7/ ãã qmailmrtg7-4.0.tar.gz ãå ¥æï¼./configure ã«ã¯å¯¾å¿ãã¦ããªã $ make $ sudo make installã§ï¼/usr/local/bin/qmailmrtg7 ãçæãããï¼ qmailmrtg7-4.0/qmail.mrtg.cfg ã«è¨å®ãã¡ã¤ã«ã®éå½¢ãããã®ã§ï¼/etc/mrtg/â¦
http://inter7.com/qmailmrtg7/ç¶ãã¯å¾æ¥
ã¾ãæåã«ï¼ããã¯ã¢ããå ã®ãã·ã³ã®rootç¨ã®sshã®ç§å¯éµï¼å ¬ééµãä½æï¼ # ssh-keygen -t dsa -f /root/.ssh/id_dsa_rsyncã§ãã¹ãã¬ã¼ãºãªãã®éµãä½ãï¼ æ¬¡ã«ï¼ä½æããå ¬ééµã« command ãªãã·ã§ã³ã追è¨ãã¦ï¼rsync 以å¤å®è¡ã§ããªãããã«ãã¦ãã¾â¦
æ¥ã ã®æ¦ãã®è¨é²ãæ®ãã¦ã¿ããã¨ã«ãã¾ããï¼