Skip to content

Instantly share code, notes, and snippets.

Masahito Zembutsu zembutsu

Block or report user

Report or block zembutsu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@zembutsu
zembutsu / docker-compose.yml
Created May 3, 2017
Mastodon Compose file (experimental)
View docker-compose.yml
version: "3"
services:
db:
restart: always
image: postgres:alpine
networks:
internal:
## Uncomment to enable DB persistance
volumes:
@zembutsu
zembutsu / docker-compose.yaml
Created Mar 31, 2016
Zabbix 3.0をDocker Composeで一度に実行する方法 ref: http://qiita.com/zembutsu/items/686b99be90d72688aee8
View docker-compose.yaml
version: '2'
services:
zabbix-db:
image: zabbix/zabbix-db-mariadb
volumes:
- zabbix-db-storage:/var/lib/mysql
- backups:/backups
- /etc/localtime:/etc/localtime:ro
environment:
- MARIADB_USER=zabbix
@zembutsu
zembutsu / file0.txt
Created Mar 31, 2016
DigitalOceanにDocker MachineでCentOS7をプロビジョンする方法 ref: http://qiita.com/zembutsu/items/04f896a96d0fc857f3a7
View file0.txt
$ export $do_token='自分のAPI_token'
$ docker-machine create \
--driver digitalocean \
--digitalocean-access-token $do_token \
--digitalocean-region sgp1 \
--digitalocean-size 2gb \
--digitalocean-image centos-7-0-x64 \
centos7-docker
View azure.tf
provider "azure" {
publish_settings = "${file("credentials.publishsettings")}"
}
resource "azure_hosted_service" "terraform-service" {
name = "zem03-01a"
location = "Japan East"
ephemeral_contents = false
description = "Hosted service created by Terraform."
label = "tf-hs-01"
@zembutsu
zembutsu / file0.yml
Last active Aug 17, 2016
参考訳:Docker ネットワーク設計哲学 ref: http://qiita.com/zembutsu/items/59463017e1e82b8c22cb
View file0.yml
$ cat docker-compose.yml
version: "2"
services:
voting-app:
image: docker/example-voting-app-voting-app
ports:
- "80"
networks:
- votenet
result-app:
View helloworld.java
public class HelloWorld
{
public static void main (String [] args)
{
System.out.println("hello world");
}
}
@zembutsu
zembutsu / gist:c133fd5f330866a981b3
Created Jul 11, 2015
#infrapre アニメ北米版紹介 スライド作成用シナリオ
View gist:c133fd5f330866a981b3
20年後も現役でいるために英語必要では
ライバルは世界
意識の低い英語勉強法!
ーーー
自分のモチベーション
当たり前だが、北米では、小学生・幼稚園でも情報にアクセスできる
日本では、英語ができないと情報にアクセスできないため、
自然と、情報を入手できるタイミングが遅くなってしまう
@zembutsu
zembutsu / softlayer_provisioning_zabbixagent.bat
Last active Oct 23, 2015
SoftLayer Provisionign Script. To set up zabbix_agent.exe ( Zabbix Agent Service ) 64bit edition.
View softlayer_provisioning_zabbixagent.bat
# 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
@zembutsu
zembutsu / timezone2jst.sh
Created Dec 9, 2014
タイムゾーンをJSTに指定する
View timezone2jst.sh
#!/bin/sh
mv /etc/localtime /etc/localtime.orig
ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
View etcd起動例
# etcd -peer-addr 127.0.0.1:7001 -addr 127.0.0.1:4001 \
-data-dir /opt/etcd -name machine1
You can’t perform that action at this time.