Skip to content

Instantly share code, notes, and snippets.

View takuan-osho's full-sized avatar
🏠
Working from home

SHIMIZU Taku takuan-osho

🏠
Working from home
View GitHub Profile
@takuan-osho
takuan-osho / consul
Created October 21, 2017 10:08 — forked from yunano/consul
/etc/init.d/consul for CentOS 6
#!/bin/sh
#
# consul - this script manages the consul agent
#
# chkconfig: 345 95 05
# processname: consul
### BEGIN INIT INFO
# Provides: consul
# Required-Start: $local_fs $network
@takuan-osho
takuan-osho / consul.service
Created October 21, 2017 10:08 — forked from yunano/consul.service
/etc/systemd/system/consul.service
[Unit]
Description=consul agent
Requires=network-online.target
After=network-online.target
[Service]
EnvironmentFile=-/etc/sysconfig/consul
Environment=GOMAXPROCS=2
Restart=on-failure
ExecStart=/usr/local/sbin/consul agent $OPTIONS -config-dir=/etc/consul.d
@takuan-osho
takuan-osho / consul-template
Created October 21, 2017 10:08 — forked from yunano/consul-template
/etc/init.d/consul-template for CentOS 6
#!/bin/sh
#
# consul-template - this script manages the consul-template
#
# chkconfig: 345 97 03
# processname: consul-template
### BEGIN INIT INFO
# Provides: consul-template
# Required-Start: $local_fs $network
@takuan-osho
takuan-osho / consul-template.service
Created October 21, 2017 10:08 — forked from yunano/consul-template.service
/etc/systemd/system/consul-template.service
[Unit]
Description=consul-template
Requires=network-online.target
After=network-online.target consul.service vault.service
[Service]
EnvironmentFile=-/etc/sysconfig/consul-template
Restart=on-failure
ExecStart=/usr/local/sbin/consul-template $OPTIONS -config=/etc/consul-template.d
@takuan-osho
takuan-osho / vault
Created October 21, 2017 10:07 — forked from yunano/vault
/etc/init.d/vault for CentOS 6
#!/bin/sh
#
# vault - this script manages the vault server
#
# chkconfig: 345 96 04
# processname: vault
### BEGIN INIT INFO
# Provides: vault
# Required-Start: $local_fs $network
@takuan-osho
takuan-osho / vault
Created October 21, 2017 10:07 — forked from yunano/vault
/etc/init.d/vault for CentOS 6
#!/bin/sh
#
# vault - this script manages the vault server
#
# chkconfig: 345 96 04
# processname: vault
### BEGIN INIT INFO
# Provides: vault
# Required-Start: $local_fs $network
@takuan-osho
takuan-osho / brew-cleanup.sh
Created February 20, 2017 23:33
homebrewでcleanup候補をリストあっぷするスクリプト
#!/bin/bash
brew cleanup 2>&1 | grep Skipping | cut -d ' ' -f3 | cut -d ':' -f1 > skiplist.txt
require 'sinatra'
get 'hi' do
"Hello World!"
end
Fri Apr 15 02:36:41 UTC 2016