2011-05-01ãã1ã¶æéã®è¨äºä¸è¦§
init.dã¹ã¯ãªããä½ãããã¨æã£ããã§ãBashã ã¨éªéããããã®ã§ãã¤ãã¼ã ã®Rubyã§ãã£ã¦ã¿ãï¼ ã¹ã¯ãªãããDaemonåãã rubygem Daemons Daemonsã¯Rubyã®ã¹ã¯ãªãããç°¡åã«ãã¼ã¢ã³ã«ãããã¨ãã§ãããã¼ã«ï¼ ä»çµã¿ã¯Forkãã¦SetUIDã§ããã¤Threadâ¦
lsyncd 㯠rsync ãinotify ã§å®è¡ããï¼ã¤ã¾ããã¡ã¤ã«ãæ¸ãæãã£ãã転éã ãã£ã¬ã¯ããªãç£è¦ãã¦ï¼ãã¡ã¤ã«ãæ´æ°ãããã転éï¼åæï¼ ä»¥å¤ã¨ä¾¿å©ã§ï¼ãã¡ã¤ã«ãã¯ã¼ãããã¿ãããªæè¦ã«ãªã£ããããã¯ãªã¹ã¹ã¡ãããããªãï¼ lsyncd ã®ç¹é· åæãâ¦
以åã®ã¨ã³ããªã§newgem ã使ã£ãgem ã®ä½ãæ¹ãã¾ã¨ããå¾ï¼rubygemsã«ã¢ãããã¼ããããã¨æã£ããï¼rubygemsã®ããã¥ã¡ã³ãã«ããã¾ããjeweler使ãããçãªäºãæ¸ãã¦ãã£ãã®ã§è©¦ãã¦ã¿ã¾ããï¼ Publishing your own RubyGem / Gemcutter / Knowledge â¦
Wgetã«ã¯ãããããªãã·ã§ã³ããã£ã¦ä½¿ããããã§ãï¼ ã¬ã¸ã¥ã¼ã ãããªãã·ã§ã³ãã¤ãã wget -c ã¢ãã¬ã¹ éä¸ã¾ã§ã§æ¢ã¾ã£ãã¢ãã¯ã-c ã¤ãã¦ãã³ãã³ããå®è¡ããã°åéã§ãã¾ãã ã¬ã¸ã¥ã¼ã ãªãã·ã§ã³ãã¤ãã¦è»¢éããä¾ åéãå§ã¾ã£ããããã¦ã³ãâ¦
recpt1ã®ãªãã·ã§ã³ã§ --http ã¨è¨ãã¢ããè¦ã¤ããã®ã§åãè¾¼ãã ï¼recpt1ããã®ã¾ã¾HTTPæ¥ç¶ãåãä»ããï¼ VLCããHTTPã§ã¢ã¯ã»ã¹ããã ãã VLCãããã£ã³ãã«æå®ã§ããï¼ Bon_Driverã®HTTPã¨ãçµã¿åãããããï¼ httpã¤ãã㨠VLCãªã©ã§HTTPã®ã¢ãã¬â¦
rubyã§ã³ã¼ããæ¸ãã¦ãã¨ã©ã¤ãã©ãªã®ãã¹ã ã¨ãï¼ã¢ã¸ã¥ã¼ã«ã®ä¾åé¢ä¿ã¨ãããã©ããããªã£ã¦ããï¼ãã¨Githubãªã©ã«ç½®ãã¦ãããããªãï¼github ã«ã³ã¼ããç½®ãã¦gem ããã±ã¼ã¸ã«ãããï¼*1ã©ã¤ãã©ãªã®ãã¼ããã¹ã解決ããã 2011-05-17è¿½è¨ rubygemsâ¦
Rubyã®gem server ã¯æ軽ã«ããã¥ã¡ã³ããå¼ããã®ã§éå®ãã¦ãã¾ãï¼ãã®ãµã¼ãã¼ã¯æ軽ã«ä½ããããããããã¼ã¸æ°ããã®ã§Rubyã§å¤é¨HTMLåå¾ããã¹ãã¤ããæ¸ãã¦ããã¨ãã«ãã¹ããµã¼ãã¼ã¨ãã¦éå®ãã¾ãï¼ Test::Unitã§ãã¹ãç¨ã®ãµã¤ãã欲ããã®ã§gâ¦
Hash.maxããã®ã¾ã¾ã ã¨ããã¼ã®æ大å¤ãè¿ããrubyã®Hashã¯max()ã§ãã¼ã®æ大å¤ãæ±ãã¦ããã®ã§å°ãã¾ãï¼ ããã§å¤ããæ大å¤ãæ±ããããã«ãã¾ãï¼ h.max { |a, b| a[1] <=> b[1] }ã§Valueã®æ大å¤ãè¿ã£ã¦ããï¼ä¾¿å©ãï¼æå°å¤ãåã h.min { |a, b| aâ¦
Dexpotã§å£ç´ããã¼ããããªãã§ãèæ¯çã£é»ã«ãªã 対å¿çã¯å£ç´ã®ãã¡ã¤ã«ãã¹ã«æ¥æ¬èªãå«ããªããã¨ã§ããï¼è¨å®ãããããã®ãï¼ããã°ã©ã ã®åé¡ãçå£ã«æ©ãã§ãã¾ãã¾ãããç°¡åãªãã¨ã§ããï¼
Cygwinã ã¨ããããã³ã³ãã¤ã«ã§ãã¦æ¥½ããã§ãï¼æè¿ã¯Win32APIé¢é£ã§ã³ã³ãã¤ã«ãã¦ã¦ã£ã³ãã¦ä½ã£ãããã¦éãã§ã¿ã¦ãï¼ gccã§ã³ã³ãã¤ã« cygwin ã®gccãææ°ã®gcc4ã¯ãwindowsãã¯ãã¹ã³ã³ãã¤ã«ã«ç§»åãããã®ã§ãè²ã é¢åãã¨ããããåããã«ã¯æ¬¡ã®â¦
SSHã®ãã¼ããï¼ï¼ä»¥å¤ã«ãã¦ãããµã¼ãã¼ããRsyncãããã¨ãããErrorã«ãªã£ãï¼ ãã¼ãæå®ã§rsync ããã«ã¯ã¡ãã£ã¨é¢åã ã¨åãã£ãï¼ SSHã®ãã¼ããå¤ããRsyncãæå®ããæ¹æ³ rsync -az --partial --progress -e "ssh -p 2355" [email protected]:/vaâ¦
pt1ãã©ã¤ãã§recpt1ãåããã¦ãã¾ãï¼Ubuntuãã¢ãããã¼ãããã¨ããããããã£ã¦ãããããã©ã¤ãåæ§ç¯ããã°è¯ããã ãï¼ãã¨æã£ã¦ãã£ã¦ã¿ããï¼å°é·ã ã£ãï¼NTTã«ã¼ããªã¼ãã¼ã®B-CASã«ã¼ããèªã¿è¾¼ã¾ããªããªã£ããã²ã©ã Ubuntuã®ã¢ãããã¼ãã¯â¦
rsync ã使ããã¨ãããããã¹ã¯ã¼ãã§ãªãå ¬ééµèªè¨¼ã«ãã¦ãã¦ç©ãã ã¨ãç¡ãã§ããï¼åã¯çµæ§ããã¾ããsudoã¨ãã§ç©ã¿ã¾ãã SSHã®å ¬ééµãæå®ãã¦rsync rsync -az --partial --progress -e "ssh -i ~.ssh/id_rsa " [email protected]:/var/www/some/ .â¦
以åããæ¸ãæ£ããããã¨ã³ããªãã¾ã¨ãã VirutalBoxé¢é£ã®ã¨ã³ã㪠ã·ã§ã«ï¼CUIï¼ããvirtualBoxãèµ·åããã - ããã¯ãã¯ãéçºã« /etc/apt/sources.list ã¯åå²ãã¦ç®¡çã§ãããï¼ - ããã¯ãã¯ãéçºã« virtualBoxä»®æ³ã²ã¹ãOSã®ãã¼ããå ¬éããã -â¦
Cgywinã§DDåºæ¥ãã便å©ã§ãããï¼ ããåºæ¥ããæ ¼å¥½ãããCygwin調ã¹ããDDåºæ¥ããã¨ãåãã£ãï¼ 2011-10-27è¿½è¨ ææ°çã®Cygwinã§ã¯ dd if=/dev/scd0 of=image.iso bs=512/dev/scd0 ã¨ããããã¤ã¹ãã¡ã¤ã«ãã§ãã¦ãããã¨ã確èªãã ãã©ã¤ãã確èªãâ¦
ã¬ãããã¼ãã¨ããï¼ï¼ï¼ã§1024x768ã¨ããç®å°ç°å¢ã§çæ´»ãã¦ãã¾ãï¼æ±ºãã¦MacBookAirããããã¾ããã¨ã¯æãã¾ãã*1ï¼MacOSããããªã¼ã¨æãã®ã¯æ¬¡ã®ç¹ã§ãï¼ Spaces/Exposeã使ãã. ã¿ã¼ããã«ã使ããï¼ ã¿ã¼ããã«ã¯Macè²·ããªãã¦ãWindowsãªãCygwiâ¦
ãã©ã«ããç¡è¦ãããã¨ã㯠ãã£ã¡ â grep ã§ç¹å®ã®ãã£ã¬ã¯ããªãå¤ã - ãããã°ã§ï¼ grep -x SEARCH File file .. -i, --ignore-case PATTERN ã¨å ¥åãã¡ã¤ã«ã®åæ¹ã§ãè±å¤§æåã¨å°æåã®åºå¥ãããªãããã«ãã¾ãã -L, --files-without-match -H, --wâ¦
NX ã¯Linuxã§ã®ãªã¢ã¼ããã¹ã¯ããã NXã¯Linuxã®SSHã®X転éããã¼ã¹ã«ãããä»®æ³ãã¹ã¯ãããã»ãªã¢ã¼ããã¹ã¯ãããã·ã¹ãã ï¼VNCãªã©ã®ä»²éã§ã¯ãããVNCãããæ ¼æ®µã«ä½¿ããããã®ã§æç¨ãã¦ããï¼ä¹ ã ã«ï¼è¨å®ããã®ã§ï¼æ¸ãæ£ããããã¨ã³ããªãã¾ã¨ãâ¦
ä¸éã¯git å ¨çã§ããï¼ãã¤ãã¼æ好è ã¨ãã¦ã¯hg / mercurialã§ãã£ããããã°ã£ã¦ããã¾ãã hg cloneãSSHçµç±ã§ããå ´å 絶対ãã¹ã§ã¢ã¯ã»ã¹ããã¨ã㯠hg clone ssh://takuya@hostname//var/www/repository/path/to/projectSSHã¯ãã¼ã ãã£ã¬ã¯ããªãåºâ¦