2016-08-01ãã1ã¶æéã®è¨äºä¸è¦§
GoogleAPI Clientã«ã¯ Google::Auth::TokenStore ã¨ãããã¼ã¯ã³ãä¿åããããã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ãåå¨ãã¦ãã¦ãããã©ã«ãã§ã¯ Google::Auth::Stores::FileTokenStore Google::Auth::Stores::RedisTokenStore ã®ãµãã¤ããããããã®S3ãã¼ã¸ã§ã³ã ã²ã¨â¦
Gmailã®APIçµç±ã§æªèªã®ã¡ã¼ã«ã1件æ¤ç´¢ãã¦æ¢èªã«ãããµã³ãã«ãOAuthã®ãã¼ã¯ã³ããªãå ´åã¯ã³ã³ã½ã¼ã«ã«åºã¦ããURLããã©ã¦ã¶ã§éãã¦èªè¨¼å¾ã«åºã¦ããã³ã¼ããå ¥åããã require 'google/apis/gmail_v1' require 'googleauth/stores/file_token_store'â¦
Bashã§set -xã¨ããã¨ãããã°ã¢ã¼ãã¨ãã¦å¦çå 容ãé次åºåããã¾ãããPS4ã¨ããç°å¢å¤æ°ã§åºåå 容ã調æ´ã§ãã¾ãã test.sh #!/usr/bin/env bash PS4='+ [${BASH_SOURCE}:${LINENO}] ${FUNCNAME:+$FUNCNAME(): }' set -x hello() { name=$1 echo "Hellâ¦
retry() { command="$@" local try_count=0 local retry_limit=3 local wait_seconds=300 until sh -c "$command"; do [ $try_count -eq $retry_limit ] && return 1 sleep $wait_seconds try_count=$(expr $try_count \+ 1) done } # example retry ls -ltraâ¦
8/10~13 ã®3æ³ã§åæµ·éã«è¡ã£ã¦ãã¾ããã 1æ¥ç®(8/10) ç´åã«é£è¡æ©ãåããã¨ãã¾ããããç¾½ç°çºã®ä¾¿ã¯å ¨æ» ã ã£ãã®ã§è¨å空港ããåºçºãæ±äº¬é§ ãã500åã®ãã¹ä¾¿ãããã®ã§ãããå©ç¨ãã¾ãããè¨å空港ã¯ã¬ã«ãã³æ¨ããã¤ããã£ãã§ãã 12æåã«æ°åæ³â¦
ããªãè©å¤ãè¯ãã£ãã®ã§è¦ã¦ãã¾ãããææ³ã¨ãã¦ã¯è©å¤ã«éãã¬å 容ã§é¢ç½ãã£ãã§ãã å ¨ä½çã«æ¥æ¬ãããªã¨ãã(ã¢ã¡ãªã«ãå®å ¨æªè æ±ã)ã¨ãã¯è³å¦ãå¥ãããã¨æãã¾ããã庵éç¯ã£ã¦ãã¨ã§åã¯ã¢ãªããªã¨æãã¾ãããã¨ããã©ããã§ã¨ã´ã¡ãã¿ã¨ããâ¦
github.com ååãè¦ã¦ããåããã®ããã«rbenvã¨åããããªæãã®terraformã®ãã¼ã¸ã§ã³ç®¡çãã¼ã«ã§ã*1ãè¤æ°ããã¸ã§ã¯ããterraformã§ç®¡çãã¦ã¦ããããã®ãã¼ã¸ã§ã³ãåããã¦ãå ´åãæ³å®ãã¦ä½ã£ã¦ã¾ãã ãã²ãã²ã使ã£ã¦ã¿ã¦ãã ããï¼ åºæ¬çãªâ¦
ã¨ããããããã ã«æ¸ãã¦ãããã¨ã®ãã£ããã¡ã¢ åproviderã®ãã¤ããªãã¡ã¤ã«(terraform-*)ãä¸è¦ã«ãªã£ãã®ã§ãæ¶ã planã§çµæãmapã ã£ãå ´åfoo#ã§ã¯ãªãfoo% ã«ãªã£ã concat()ã¯stringã§ã¯åããªããªã£ããlistã®ã¿, stringã®çµåã¯${var}-fooã¿ãâ¦