This file contains 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
$ dig @sakura1.pocketstudio.net -p 8600 web.service.sakura.consul | |
(略) | |
;; QUESTION SECTION: | |
;web.service.sakura.consul. IN A | |
;; ANSWER SECTION: | |
web.service.sakura.consul. 30 IN A 192.168.39.11 | |
web.service.sakura.consul. 30 IN A 192.168.39.13 |
This file contains 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
{ | |
"dns_config": { | |
"service_ttl": { | |
"*": "5s", | |
"web": "30s" | |
} | |
"allow_stale": false , | |
"max_stale": "5s", | |
} | |
} |
This file contains 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
$ mkdir -p ~/go/src/github.com/armon | |
$ cd ~/go/src/github.com/armon | |
$ git clone git@github.com:armon/consul-kv.git |
This file contains 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
$ wget -O 0.6.2_linux_amd64.zip https://dl.bintray.com/mitchellh/serf/0.6.2_linux_amd64.zip | |
$ unzip ./0.6.2_linux_amd64.zip | |
# cp ./serf /usr/bin/serf |
This file contains 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
$ wget -O 0.3.0_linux_amd64.zip https://dl.bintray.com/mitchellh/consul/0.3.0_linux_amd64.zip | |
$ unzip ./0.3.0_linux_amd64.zip | |
# cp ./consul /usr/bin/consul |
This file contains 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
# etcd -peer-addr 127.0.0.1:7001 -addr 127.0.0.1:4001 \ | |
-data-dir /opt/etcd -name machine1 |
This file contains 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 | |
mv /etc/localtime /etc/localtime.orig | |
ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime |
This file contains 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
# setup directory and download | |
mkdir c:\zabbix | |
cd c:\zabbix | |
bitsadmin.exe /transfer "zabbix-agent" http://www.zabbix.com/downloads/2.4.1/zabbix_agents_2.4.1.win.zip "c:\zabbix\zabbix_agents_2.4.1.win.zip" | |
# unzip archive | |
Add-Type -Path "C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.IO.Compression.FileSystem\v4.0_4.0.0.0__b77a5c561934e089\System.IO.Compression.FileSystem.dll" | |
[System.IO.Compression.ZipFile]::ExtractToDirectory("c:\zabbix\zabbix_agents_2.4.1.win.zip", "C:\zabbix\") | |
# setup zabbix |
This file contains 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
20年後も現役でいるために英語必要では | |
ライバルは世界 | |
意識の低い英語勉強法! | |
ーーー | |
自分のモチベーション | |
当たり前だが、北米では、小学生・幼稚園でも情報にアクセスできる | |
日本では、英語ができないと情報にアクセスできないため、 | |
自然と、情報を入手できるタイミングが遅くなってしまう |
This file contains 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
public class HelloWorld | |
{ | |
public static void main (String [] args) | |
{ | |
System.out.println("hello world"); | |
} | |
} |