This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2016/09/13 20:36:22 [INFO] Terraform version: 0.7.3 0dd7c657d6d60d2e7392b66ae6f74fb84582cab9 | |
| 2016/09/13 20:36:22 [INFO] CLI args: []string{"/home/kkojima/bin/terraform", "plan"} | |
| 2016/09/13 20:36:22 [DEBUG] Detected home directory from env var: /home/kkojima | |
| 2016/09/13 20:36:22 [DEBUG] Detected home directory from env var: /home/kkojima | |
| 2016/09/13 20:36:22 [DEBUG] Attempting to open CLI config file: /home/kkojima/.terraformrc | |
| 2016/09/13 20:36:22 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
| 2016/09/13 20:36:22 [DEBUG] Detected home directory from env var: /home/kkojima | |
| 2016/09/13 20:36:22 [TRACE] Preserving existing state lineage "776f5749-5ca1-407c-bfd9-1ba658fca5e8" | |
| 2016/09/13 20:36:22 [TRACE] Preserving existing state lineage "776f5749-5ca1-407c-bfd9-1ba658fca5e8" | |
| 2016/09/13 20:36:22 [TRACE] Graph after step *terraform.ConfigTransformer: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Blue | |
| variable "blue" { | |
| default = "0" | |
| } | |
| resource "aws_autoscaling_group" "blue" { | |
| count = "${signum(var.blue)}" | |
| name = "blue" | |
| max_size = 2 | |
| min_size = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| provider "aws" { | |
| alias = "tokyo" | |
| region = "ap-northeast-1" | |
| } | |
| provider "aws" { | |
| alias = "seoul" | |
| region = "ap-northeast-2" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| emerge -DN world | |
| echo net-misc/openssh -static >> /etc/portage/package.use/openssh | |
| echo sys-apps/coreutils -static >> /etc/portage/package.use/coreutils | |
| echo net-misc/wget -static >> /etc/portage/package.use/wget | |
| emerge openssl openssh | |
| emerge --buildpkg=y --usepkg=y --onlydeps media-video/mediainfo | |
| CURL_SSL="gnutls" emerge curl | |
| x86_64-pc-linux-gnu-g++ -O2 -pipe -fPIC -DUNICODE -DUNICODE -DSIZE_T_IS_LONG -Wl,-O1 -o mediainfo CLI_Main.o CommandLine_Parser.o Help.o Core.o -Wl,-Bstatic -lmediainfo -lz -lzen -lpthread -lstdc++ -ltinyxml2 -lcurl -lgnutls -ltasn1 -lz -lnettle -lhogweed -lgmp -static-libgcc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| CC="gcc" | |
| OPT="-march=native" | |
| NATIVE=$(echo | ${CC} -E -v ${OPT} - 2>&1 | grep cc1) | |
| NOARCH=$(echo | ${CC} -E -v - 2>&1 | grep cc1) | |
| for native in ${NATIVE} ; do | |
| FOUND=0 | |
| for noarch in ${NOARCH} ; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ sudo emerge --pkg-format=rpm --buildpkgonly <category>/<package> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "os" | |
| ) | |
| func main() { | |
| port := os.Getenv("PORT") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :%!jq . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ docker-machine create --driver virtualbox local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >>> Source configured. | |
| >>> Compiling source in /var/tmp/portage/x11-wm/xmonad-0.11-r1/work/xmonad-0.11 ... | |
| ./setup build | |
| Building xmonad-0.11... | |
| Preprocessing library xmonad-0.11... | |
| [1 of 8] Compiling XMonad.StackSet ( XMonad/StackSet.hs, dist/build/XMonad/StackSet.o ) | |
| [2 of 8] Compiling XMonad.Core ( XMonad/Core.hs, dist/build/XMonad/Core.o ) | |
| XMonad/Core.hs:152:24: | |
| No instance for (Applicative Query) |