2013-01-01ãã1å¹´éã®è¨äºä¸è¦§
ãããã¯ãã§Webãµã¼ãä¸ã®ç¾å¨æå»åºãããè¦ä»¶ãããã¾ããã ãããããã®å¦çãªãã¢ããªã±ã¼ã·ã§ã³ä»ããã¨ãnginxã ãã§ããããã§ããã ç¾å¨æå»ãããã¼ã«ã¤ãããªãnginxæ¨æºæ©è½ã§åºæ¥ãããªãã§ããã 深淵ãªãçç±ããã³ã³ãã³ãã¨ãã¦æ¬²ããã¨â¦
attributeãã¡ã¤ã«ã®ãªã¼ãã¼ã©ã¤ã å ¬å¼ã¬ã·ãã使ãå ´åã«ãattributesãã¡ã¤ã«ã®ä¸é¨ã®ãã©ã¡ã¼ã¿ã ãæ´æ°ãããæãããã¨æãã¾ãã jsonã§ãã¡ãã¡æå®ãã¦ãè¯ããã§ãããå ±éã§è¨å®ããããã©ã¡ã¼ã¿ã¯ site-cookbooks以ä¸ã«attributesãã¡ã¤ã«ã§æ¸â¦
https://github.com/toritori0318/vagrant-ec2info vagrant-aws使ãã¾ãã£ã¦ãããã§ããã ãã®ã¤ã³ã¹ã¿ã³ã¹ã®dnsã¨ãã¿ã°ã¨ãããã£ã¨è¡¨ç¤ºããããªã¼ã¨æã£ã¦æ¸ãã¾ããã ããã ãã ãããªã¤ã¡ã¼ã¸ã§ãã vagrant-awså¿ é ã
Vagrantã§upã¨destroyç¹°ãè¿ãã®ã大好ãã§ããã¢ã«ãã«å¤§æç¥ã§ãã DevOps 社å ã§ãããªãã¹ãæ¨é²ãã¦ãããã¨ãããã ã¾ã第ä¸æ©ã¨ãã¦é²ãã¦ããã®ã ãã¼ã«ã«éçºç°å¢æ§ç¯ ãã¼ã«ã«Vagrantã§ã®ã¢ããªã±ã¼ã·ã§ã³éçº EC2ã¸ã®ç°å¢æ§ç¯ ããã㤠ã¯ã©ã¹â¦
http://anond.hatelabo.jp/20130911125217 ããã°ã«æ¸ãã®ããã¡ããèªåã®åå¿é²ã¨ããæå³ããããã§ãã èªåãæ¸ããè¨äºã誰ãã®æå©ãã«ãªããã°ããããªã¼ ã¨ããã¢ããã¼ã·ã§ã³ã大ããã¦ç¶ãã¦ãã¾ãã èªåãä»ã®æ¹ã®ããã°ã§å©ãããããã¨ãä½åº¦â¦
ElactiCache Redisãããã¿ã¼ï¼ããã¿ã¼ï¼ ãAWSçºè¡¨ã Amazon ElastiCacheã§Redisãå©ç¨å¯è½ã«! http://aws.typepad.com/aws_japan/2013/09/amazon-elasticache-now-with-a-dash-of-redis.html 社å Redisããããã¨ãã¦ã¯è§¦ã£ã¦ã¿ããããªãã§ãããã ã¨ãâ¦
巨大ãªJSONãã¡ã¤ã«ãã¡ã³ãããã®ãå«ã§ä»ã¾ã§CloudFomationãé¿ãã¦ããã®ã§ããã ã¨ããè¦ä»¶ãããå æ¥ãããã£ã¤ãCloudFormationã触ãå§ãã¦ãã¾ãã å®é使ã£ã¦ã¿ã¦ãç¹ã«AutoScaleã管çããã®ãã ãã¶æ¥½ã¡ãã ãªã¼ã¨ããã£ãã®ã§ ãã®è¾ºããã¡ã¢ãâ¦
æè¿ãDevOpsã¨ãããã¼ã¯ã¼ãã¨å ±ã«Packerã¨ãããã¼ã«ã®è©±ãã¡ãã»ãè³ã«å ¥ãããã«ãªãã¾ããã Packerã¨ã¯ä½ããï¼ã¨ãã話ãããã¨æãã¾ããã ãã§ã«å¤ãã®ããã°ã§è¨åããã¦ããã®ã§è©³ããã¯ãã¡ãããåç §ããã ãã®ãè¯ããã¨ã Packerã§ãã¾ãã¾â¦
æ¸ãã¾ããã https://github.com/toritori0318/redmine_ashiato æ¦è¦ æè¿è¦ããã±ãã/Wiki/ã¡ãã»ã¼ã¸ãªã©ãå±¥æ´ã¨ãã¦æ®ããåç §ã§ããããã«ãã¾ãã ä»æ§ 以ä¸ã®ã¢ã¯ã·ã§ã³ãè¡ãã¨ããããã¨ã«ç»é²ããã¾ã ãã±ãã詳細表示 ãã©ã¼ã©ã ã¡ãã»ã¼ã¸è¡¨â¦
ä¹ ãã¶ãã®Redmineãã¿ã ä»åã¯ããµã¼ãã«ãã°ã¤ã³ãã¦ãã¼ã ãã¼ã ãããã ã«ã¹ã¿ãã¤ãºç¡ãã§Webä¸ãã ããã¸ã§ã¯ãæ¯ã«ãã´ãcsså¤ããæ¹æ³ãæ¸ãã¦ã¿ã¾ãã*1 äºåæºåï¼Wiki Extentionãã©ã°ã¤ã³ã¤ã³ã¹ãã¼ã« äºåæºåã¨ãã¦ãWiki Extentionãã©ã°â¦
ã¢ã¤ã³ã³å¤ãã¾ããã ããããã¤ã¯ãã³ã³ãªã®ã§ãã éªæªãªãã³ã³å± ãã«ãã®ããã ã¨ããæ¥ã奥ããããããªãµã¤ãè¦ã¤ãã¦ãã¾ããã éªæªãªãã³ã³å±ãã«ãã®ããã 奥æ§ãããããã¢ã«ãã«ã®ãã³ã³ããããããååºã«ãã¿ãã¿ããã°ããããããªãï¼ã â¦
ï¼æ¥ç®ã®ç¶ãã ã³ã³ã»ããã¯ãã¡ãããåç §ä¸ããã ï¼æ¥ç®ã®ç®æ¨ ã¦ã¼ã¶ç®¡ç(data bag) ã¦ã¼ã¶ä½æ bash_profile管ç sudo ããã®æ®µé㧠ec2-userã®sudo権éãå¥å¥ªããæ°ã¦ã¼ã¶ã«sudo権éãä»ä¸ security_limit ï¼æ¥ç®ãå§ããåã«ï¼data bag ã¦ã¼ã¶æ å ±ãªâ¦
Chefããyum updateèµ°ããã¦ãã以ä¸ã®ãããªã¨ã©ã¼ãçºçããããã«ãªã£ã¦ãã _rpm.error: rpmdb open failed 以ä¸ã®ã³ãã³ãã§ãã¼ã«ã«ãã£ãã·ã¥ãä½ããªãããã復æ§ããã sudo yum clean all sudo rm -f /var/lib/rpm/__db* sudo rpm --rebuilddb
ä»åã¯å°ã趣åãå¤ãã¦ãVimã®ã話ã èªåã¯ããã¼ãªã®ã§ãChefã®ã¯ãã¯ããã¯ããããã®ã«ãVimã§ãã ããã§Vimã§ã¯ãã¯ããã¯ãæ¸ãæã«ä¾¿å©ï¼ï¼ï¼ ãããããªããã©ã°ã¤ã³ãScriptãç´¹ä»ãã¦ã¿ã¾ãã chef.vim http://www.vim.org/scripts/script.php?sâ¦
SQLAlchemy㧠ãæ´æ°ã¯MasterDBã ãåç §ã¯SlaveDBã ã¨ãããã¨ãå®ç¾ãããã£ãã®ã§èª¿æ»ã¡ã¢ãæ®ãã¦ããã ã«ã¹ã¿ãã¤ãºSessionã¯ã©ã¹ãä½ã£ã¦ãã®ä¸ã§Master/Slaveå¤å®ããã°è¯ãããã ã ãµã³ãã«ã¢ããªã±ã¼ã·ã§ã³ Flask使ã£ã¦ã¿ãã config.py # Masteâ¦
â»2013/5/12 å çé åä»ã«ã¤ãã¦ã®è¨è¿°è¿½è¨ æè¿å¼ç¤¾ã®ããã¸ã§ã¯ãã§ãchefãå°ããã¤å°å ¥ãã¦ããã¨ãããã å 人ã®ç¥æµãæåãã¹ãåå ãããã¾ããã æ°åç ä¿®ã§serverspecã¨Chefã使ã£ã話(@fujiwaraãã) http://dl.dropboxusercontent.com/u/224433/pâ¦
ï¼æ¥ç®ã®ç¶ãã ã³ã³ã»ããã¯ãã¡ãããåç §ä¸ããã ï¼æ¥ç®â¦ã®åã«è£è¶³ãªã© ãã¼ã¸ã§ã³ãæ§æã«ã¤ãã¦ã®ã¡ã¢ã chef 11.4.0 knife solo 0.3.0-pre4 ãã£ã¬ã¯ããªæ§æ åºæ¬çã«ã¯ knife solo init ã§ä½ããããã®ã§ãã â¾ / ⸠cookbooks/ # Berkfileã§ç®¡çãâ¦
http://dry-dawn-2991.herokuapp.com ã©ããããã®ã Twitterã®OAuthå®äºå¾ããã¯ã¼ãé¸æãã¦æ´æ°ãã㨠èªåã®Twitterãããã£ã¼ã«ã®å¾ãã«ãã¯ã¼ã²ã¼ã¸ãè¨å®ããã¾ãã ä½åº¦ã§ãæ´æ°å¯è½ã ã¯ãªã¢ãå¯è½ã 500 ã¨ã©ã¼ã¯åºããã®ã¨å¿å¾ã åå ï¼ ããªãã®â¦
ï¼æ¥ç®ï¼chefã使ãããã®åæºå ä»åã¯chefã使ããç¶æ ã«ãªãã¾ã§ã®åæºåã¨ãã¾ãã chefèªä½ã®èª¬æã§ãã ãchefã¨ã¯ä½ãï¼ããchef-serverã¨chef-soloã®éãã¯ï¼ã ã¨ãã£ã説æã¯çç¥ãã¾ãã ã¾ã chef-solo / knife-soloã使ãããã®ç°å¢æºåã«ã¤ãâ¦
ï¼æ¥ç®ï¼æ¦è¦ æ¥ã ãchefã¨æ¯ããæ§åãæ·¡ã ã¨ç¶´ã£ã¦ã¿ããã ã¢ã«ãã«chefæ¥è¨ã®ã´ã¼ã« knife soloãç¨ããEC2ã®çAMIã«å¯¾ã㦠以ä¸ã®ä½æ¥ãä¸åãµã¼ãã«ãã°ã¤ã³ããã« å ¨ã¦éæããã㨠ãç®æ¨ã«ãããã¨æãã¾ãã ã¦ã¼ã¶è¨å® ããã«ã¦ã§ã¢ã®ã¤ã³ã¹ãã¼â¦
Amazon SQSã£ã¦ä¾¿å©ã ã¨æããã§ããWebä¸ã®æ å ±ã£ã¦æå¤ã¨å°ãªãã§ãããã å®éSQSã使ãéã«å¹çããããã¤ãéãç¯ç´ã§ãããã㪠ãµã³ãã«ã欲ããã£ãã®ã§æ¸ãã¦ã¿ã¾ããã ã¯ã¼ã«ã¼ã§å¹çããå¦çããããï¼ã¤ã®ãã¤ã³ã ãã®ï¼ã¤ãæ°ã«ããã ãã§ã â¦
hostãæå®ããæã§ãã®ã¾ã¾unixãã¡ã¤ã³ã½ã±ããæå®ããã°ããã import memcache mc = memcache.Client(['unix:/tmp/memcached.sock']) mc.set('foo', 'bar') print mc.get('foo')
ãã«ããã¤ãæ±ã£ã¦ãã以ä¸ã®ãããªã¨ã©ã¼ãçºçã Failed to update model. 'latin-1' codec can't encode character u'\u3042' in position 15: æ¥ç¶ããã¨ãã®ã³ã¼ãã¯ãããªæãã DBãã¯ã©ã¤ã¢ã³ããutf8æå®ãã¦ãã®ã«ãªã¼ã£ã¦æãã DSN = 'mysql://â¦
httpå©ãã¾ããã¢ããªæ¸ãã¦ãã®ã§ãã³ãåã£ã¦ã¿ãã requestsé ãããã«è¦ãããã©ã ããã¾ã§æ°ã«ããå·®ã§ã¯ãªãã¨ãããã
CLIã§JSONã®æ´å½¢ããã http://yuroyoro.hatenablog.com/entry/2013/04/02/190709 httpie ã¤ã³ã¹ãã¼ã«ãå¿ è¦ã«ãªã£ã¦ãã¾ãã¾ãã httpã®ã¬ã¹ãã³ã¹ãæ´å½¢ãããã ãã§ããã°httpieã便å©ã§ãã https://github.com/jkbr/httpie pip install httpiejsonã³ã³â¦
Mockã¢ã¸ã¥ã¼ã«ã§ãããã£ã¡ããããã ãã© å¶ç¶è¦ã¤ããã®ã§è©¦ãã¦ã¿ãã HTTPretty https://github.com/gabrielfalcao/HTTPretty GETã奪ã HTTPretty.register_uriã§å¥ªãããURLã¨æå¾ ããã¬ã¹ãã³ã¹ãæ¸ãã ãã§OKã # encoding:utf-8 import unittest fâ¦
å æãããã¾ã§ããã¾ã調åã§ãªãã¦ã¢ãããä¸ãããªãã¦ãã¸ã(^q^) ã£ã¦æãã ã£ãã®ã§ããä»æå ¥ã£ã¦ããã¯ã ãã¶è¯ãæãã§ãã å¹æã®ç¨ã¯ããããªãã§ãã 調åãä¸ãã£ã¦ãã¦ããã¨ãã«ä½ããã¦ãããï¼å¿ããã¦ãããï¼ãæ¯ãè¿ã£ã¦ã¿ãã*1 軽ãä½â¦
â»ï¼å²ãããèªæ â»è¥å¹²é ã£ã¦ã ãªãã¨ããããã¿ããªãå¿ãããã ãâ¦ãã¨ããä¸ããªã質åã ãã©â¦ãã¿ããã« é æ ®ãããã¦ããã¾äººã«èãããããªãæ°ããããã ãã© ãã£ã¨ãããããã ããªãäºãèããããããããã®ã«ãªã¼ã¨æãã ãããã«ãæãã¦åãâ¦
å«ã®ã¡ã¤ã³PCã§ããèªå® Windowsããã·ã¼ã³ãæè¿èª¿åæªããããã¨ã®ãã¨ã ãããã調ã¹ã¦ã¿ãã¨èª¿åæªãã®ã¯ãã£ã¹ãã¬ã¤ã ããªæ°ããããã§ãã ååèªä½ãã¦ããæ¢ã«5年以ä¸çµéãã¦ãã®ããã ããæ©ä¼ã ãããããè²·ãæãããã¼ ã¨ãã¹ã¯ãããããã·â¦
ãã£ã¨ããä»ã®ç¾å ´ã« znc / irc / ikachan ã¨ããç°å¢ãæ§ç¯ãã ãã³ã·ã§ã³ãä¸ãã£ã¦å¢ãã§ä½æ¥ãããã¨ãã¡ã¢ã£ã¦ã¿ã¾ãã æ£æä¼ã¿ã«ã®ãã³ãã³ã¼ãã£ã³ã°ãã¦ã¾ããã ãã£ããã¨ä¸è¦§ fluentdã§nginxã®ã¨ã©ã¼ãã°ãç£è¦ãã¦ikachanã«æãã nagiosããâ¦