2016-01-01ãã1å¹´éã®è¨äºä¸è¦§
module "hoge" { source = "${path.module}/hoge" } ã¨ãã£ã¦ãã * hoge: module source cannot contain interpolations ã§ãã¯ãããã
åã«ãããæ¸ãããã ãã©ããããªãã¨ããå¿ è¦ãªãã£ãã mpon.hatenablog.com ãã£ã¡ã§ããã£ããããªãããAWSã®ãã¨ä½ãåãã£ã¦ãªã証æ ã§ããã docs.aws.amazon.com
github.com quipper.hatenablog.com Good
追è¨:ããããuser-dataããããã¨ãç¥ããªãã£ãã®ã§ãã£ã¡ã使ãã www.mpon.me elastic ipã§æ¥ç¶ãããªã ãããªé¢¨ã«ç´ ç´ã«ï¼èªåçã«ã¯ï¼æ¸ãã¨Elastic IPãããå ã«EC2ãå ã«ä½ããã¨ãã¡ããã ã§ãprivate ipã§sshæ¥ç¶ãããã¨ããããããããããã¤â¦
moduleã®èª¤è§£ ä½ãããã£ã¦ãªãã£ãã module使ãã¨å¤æ°ã¨ããscopeåã§ãããããããªã¼ã£ã¦æã£ã¦ããã©ãresourceãscopeåãããã£ã¦ãã¨ã ã£ãã ã¾ãéã«è¨ãã°ãmoduleå ã«resourceåã¯è¢«ããªãããã«æ°ãã¤ããå¿ è¦ããªãã¨ãè¨ãããã©ã terraformâ¦
NAMEã«TYPEãå ¥ãããã©ãã çµæ§ããã¸ã§ã¯ãã«ãã£ã¦ãã©ãã©ã§ä»ã®è¨èªã§ããããã¬ã¤ãã©ã¤ã³ã¿ãããªã®ããªãæ°ãããã å人çã«ã¯resourceã®TYPEã§ç¹å®ã§ããããå ¥ããªãæ¹ãããããªã¨ããæ°ã«ãªã£ã¦ããã resource "aws_vpc" "dev_vpc_01" {} resâ¦
ã©ãå ¥éããã ä»ã¾ã§äººãä½ã£ãterraformã®è¨å®ãããã£ã¦é©ç¨ã¨ãã¯ãã¦ãããã©èªåã§ä¸ããä½ã£ããã¨ãªããä»çµã¿ãç解ããã«ã¯ãä¸ããèªåã§ä½ã£ã¦ã¿ãã®ãæ©ããã ã¨æã£ãã®ã§èªåã§ä¸ããä½ã£ã¦ã¿ããã¨ã«ããã ã®ã§ãç´ ç´ã«ããããããã¨ã«ãâ¦
JSON.stringifyããå¿ è¦ããã£ãã NG "attachments": [{ "text": "hoge" }] OK "attachments": JSON.stringify([{ "text": "hoge" }])
èæ¯ APIã®åãå ã¨ããTargetãå¢ããã¦swiwt other flagsã§#if DEBUGã¨ã#if STAGINGã§ãã£ã¦ããã®ã§ç°å¢ãå¢ãããã³ã«targetãå¢ãã¦ãã£ã¦ãã¾ãã®ã§ããããã å®è¡æã«ç°å¢å¤æ°çã«å¤ã渡ããªãã Schemeã®Pre-actionsã§è¿½å ãã BuildãRunãTestãâ¦
Tabãæ¼ãã¨åæã«ãªããéã«ç¡é§ãªã¿ãã¯æã¦ãªããå ¨é¸æãã¦Tabã§ãããã
ç¾è±¡ ãããµã¼ãã¹ã®ä»çµã¿ã§å¦ççµæãéç¥ãã¦ããããã«ãèªãµã¼ãã¼ã®apiããããã«ããã¨ããããããã®éã«ããµã¼ãã¼å´ã§ã¯æ¬å½ã«ãã®ãµã¼ãã¹ããã®ãªã¯ã¨ã¹ããã©ãããã¿ãããã«ããããããIPã¢ãã¬ã¹ãè¨å®ãã¦ããã¦validateãã¦ããããããªâ¦
payloadã®ãªãã«&ãå ¥ã£ã¦ãããã%26ã£ã¦æ¸ããªãã¨ãããªãã£ãã
Jenkinsã®ã·ã§ã«ã®å®è¡ã§#!/bin/sh -xeã£ã¦ã¤ãã¦éä¸ã§ã¨ã©ã¼ãèµ·ããããã®æç¹ã§ã jobãfailureã«ããã£ã¦ããã®ã¯ããããã¨æããã§ããã ãã®ãªãã§ãsh hoge.shã¿ããã«å¥ã®shãèµ·åããã¨ã hoge.shã®ä¸ã§ã¨ã©ã¼ããã£ãã¨ãã«ãeãªãã·ã§ã³ã¤ãã¦â¦
ç¶æ³ ã¨ããç¶æ ã«ãªã£ã¦ãã¾ã£ã¦å°ã£ããsbtãã°ãã¼ãã«ã§å©ç¨ããsbtoptsãããã¸ã§ã¯ãå ±éã§æå®ãã¦ããã¤ããã£ã¦ä»ã®äººã¯åé¡ãªãããã¨ã®ãã¨ããã ãOutOfMemoryãªã®ã§JVMã®ã¹ãã¼ã¿ã¹ã¿ããã®ãè¦ããã¨æã£ã¦èª¿ã¹å§ããã :dancers: JVMã®ããã©â¦
ååã«æãã¦è²°ã£ãã scala.PartialFunction condOpt ã使ããã«æ¸ãã¦ãããµã³ãã«ãè¦ãã¨ãããã ãã¤ã³ã㯠matchå¼ã使ã£ã¦ã㦠ãã®matchå¼ã®æ»ãå¤ã®åãOption å é ããmatchããã¦ãã£ãã¨ããä¸çªæå¾ä»¥å¤ã®matchããå ´åã«ã¤ãã¦ã¯ãæ示çã«Soâ¦
scalaã®httpã¯ã©ã¤ã¢ã³ã ä»ã¾ã§Playãããã£ããã¨ãªãããWSããç¥ããªãã¦ãPlayãããªããã¤ã§httpã¯ã©ã¤ã¢ã³ãçãªã©ã¤ãã©ãªã£ã¦ä½ã使ãã°ãããã ããã£ã¦ã®ãã¹ã¿ã¼ããComparing Scala's HTTP client libraries - implicitdefã¨ãè¦ã¦dispatchã£ã¦â¦
Pureeãcocoapodsã§å°å ¥ãããã¨ãã¦ãã Pureeãä¾åãã¦ãYapDatabaseã¨ãããã¤ãCocoaLumberjackã«ä¾åãã¦ã¦ãCocoaLumberjackã®ã¨ããã§ã¿ã¤ãã«ã®ã¨ã©ã¼ãåºãã Implicit declaration of function 'notify_cancel' is invalid in C99 notify_cancelâ¦
ä»ã¾ã§ å ¥ç¤¾ãã¦éçºã¡ã³ãã¼ã¨ãã¦ä»äºããã¦ãã¦ããã¤ã®ã¾ã«ããã¼ã ãªã¼ãã¼çãªå½¹å²ã«ãªã£ãã ã¹ã±ã¸ã¥ã¼ã«éã«åããããã·ãã£ãè¨æ¸¬ãããããããã¨ããªããªããªãããã«ã¿ã¹ã¯ãæ¤è¨ããããæ°åã¡ã³ãã¼ã®åãå ¥ãããã£ããããã¼ãã£ã³ã°ã®èª¿â¦
indiceã¨indexã£ã¦ã©ãéããåãããªãã¦ãªããindiceã¯indexã®è¦ªæ¦å¿µããªã¨åéããã¦ãã¾ã£ã¦ãã¦ãããªãæ··ä¹±ãã¦ããã©ãindice æå³ ã§ãæ¤ç´¢ãããããããå義èªã ã£ã⦠kibanaã§è¦ãå ´åã¯ã¢ã¹ã¿ãªã¹ã¯ã¨ã使ã£ã¦ã©ããè¤æ°ã®indexãã¾ã¨ãã¦è¦ããâ¦
ubuntuã16.04ã«ãªã£ã¦ã ãããä¸çªå¤§ããªåå ã ubuntu 16.04ã2016/4ã«ãªãªã¼ã¹ããã¦ã¦ãä»Dockerhubã®ubuntuã®latestã¯16.04ã«ãªã£ã¦ããã¡ãªã¿ã«ãã³ã¼ããã¼ã ã¯ãXenial Xerusï¼ã¸ã¼ãã¢ã« ã¸ãªã¹ï¼ãã§ãããã¦ãªãã®ã¢ã©ã²ã¸ãªã¹ã https://hub.doâ¦
èæ¯ Logbackã¨ã¯ Logback ã¯å··ã§å¤§äººæ°ã® log4j ããã¸ã§ã¯ãã®å¾ç¶ããã¸ã§ã¯ã java製ã®ããã¡ã¯ãã£ã½ããã®ã³ã°ã©ã¤ãã©ãª Airbrakeã¨ã¯ åç¨ã®ã¨ã©ã¼ãã©ããã³ã°ã·ã¹ãã Errbitã¨ã¯ Airbrakeã®OSSã¯ãã¼ã³ airbrake-logbackã¨ã¯ logback ã¯ãã®ã³ã°â¦
hubotä½æ https://hubot.github.com/docs/ã«å¾ã£ã¦ãyo hubotã§hubotä½æ adapterã¯slack Procfileã¯åé¤ãã¦ãDockerfileã Docker + Yeoman + Hubot + Slack ã§ç°¡åbotä½æ åèã«ãã¦æ¸ã FROM node:latest RUN mkdir /bot && cd /bot ADD . /bot WORKDIâ¦
sequenceã£ã¦ããååããã©ããã¦ãé åºãæèãã¦ãã¾ã£ã¦é çªã«ï¼ç´åã«ï¼å®è¡ããããã®ã ã¨æã£ã¦ããã ã§ããããããªãã£ãã Future.applyã®å ´å ãããã«ããããªå¦çãæ¸ãã¦ã¿ãã1ãã10ã¾ã§ã1så¾ ã£ã¦åºåããã ãã®ãã¤ã def process: Futurâ¦
FROMã§ã«ã³ãã§ä¸¦ã¹ãã ã SELECT * FROM A, B; ä¾ãã°ã²ã¼ã ã¿ãããªãã¤ã§ãusersãã¼ãã«ã¨ãlevelsãã¼ãã«ããã£ã¦ãusersã¨levelsã«ã¯ä½ã®é¢ä¿ããªããã©ãuserä¸äººä¸äººã«å ¨ã¬ãã«ãçµåãããã¿ãããªã¨ãã SELECT users.name, levels.level FROM usâ¦
ä¾ãã°ã$ docker logs hoge ã¿ãããªæãã§ãã°ãè¦ãããã©é·ãã¦ç»é¢ã«ããã¾ããªãããããã¤ããã¦lessã«æ¸¡ããããã©ããããã¨ãè²ãåºãªãã®ã§ãªãããªãããªã¨æã£ãããã£ãã -R ãã¤ããã°OK $ docker logs hoge | less -R