Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am wshino on github.
  • I am wshino (https://keybase.io/wshino) on keybase.
  • I have a public key ASDMgbT7RTZEQFTsjbhWPV6zJN2SRj4H_uySWHX-s3lo3go

To claim this, I am signing this object:

set -o errexit
0 以外のステータスで終了したら即終了
set -o nounset
未定義の変数を参照するとエラーメッセージが出る。
set -o pipefail
@wshino
wshino / docker-compose.yml
Last active April 14, 2017 06:29
docker swarm で compose を使いつつ、api の blue-green deploy を行う ref: http://qiita.com/wshino/items/b8c1814418ad9e26c8d3
version: '2'
services:
bg:
image: hanzel/blue-green
container_name: bg
ports:
- "80:80"
- "8080:8080"
environment:
- CONSUL_URL=172.27.100.141:8500
@wshino
wshino / file0.txt
Created January 5, 2016 07:32
play アプリケーションを rpm でデプロイする その 2 ref: http://qiita.com/wshino/items/91a1a44aeacff93374d7
lazy val root = (project in file("."))
.enablePlugins(PlayScala, RpmPlugin, RpmDeployPlugin)
yum groupinstall 'Development Tools' -y
yum install openssl-devel -y
git clone https://github.com/wg/wrk.git
cd wrk
make
cp wrk /usr/local/bin/
autoconf
boot2docker
brew-cask
cabal-install
cloog
docker
faac
ffmpeg
fish
freetype
@wshino
wshino / sample.md
Last active August 29, 2015 14:04
テストのときにfixtureを使うと便利かもしれない
/**
* Created by JP16163 on 2014/08/05.
*/
class User(id:Int, name: String){
def getName = name
}
object Main extends App {
pattern1
@wshino
wshino / gist:9700375
Created March 22, 2014 02:46
securesocialのsampleでエラー play2.1.5
[info] application - [securesocial] loaded templates plugin: securesocial.controllers.DefaultTemplatesPlugin
[info] play - Starting application default Akka system.
[info] application - [securesocial] loaded user service: class services.MyUserService
[info] application - [securesocial] loaded identity provider: facebook
[info] play - Application started (Dev)
[debug] application - [securesocial] calling deleteExpiredTokens()
[debug] application - [securesocial] bootstrap path = securesocial/bootstrap/css/bootstrap.min.css
[debug] application - [securesocial] assets controller = controllers.ReverseAssets
[debug] application - [securesocial] favicon path = securesocial/images/favicon.png
[debug] application - [securesocial] Jquery path = securesocial/javascripts/jquery-1.7.1.min.js
@wshino
wshino / gist:9658050
Created March 20, 2014 05:56
ごめんこれだれのだっけ
➜ ~ cat .tmux.conf
set-option -g prefix C-t
bind t send-prefix
bind r source-file ~/.tmux.conf \; display-message "Reload Config!!"
# ----------------- #
# ウィンドウの振る舞い #
# ----------------- #
## ウィンドウ番号1から開始する