Skip to content

Instantly share code, notes, and snippets.

View azihsoyn's full-sized avatar

Naoya Yoshizawa azihsoyn

View GitHub Profile
@azihsoyn
azihsoyn / design.go
Last active April 4, 2017 08:00 — forked from ikawaha/design.go
KeyがEnumで制限されているHashOf
package design // The convention consists of naming the design
// package "design"
import (
. "github.com/goadesign/goa/design" // Use . imports to enable the DSL
. "github.com/goadesign/goa/design/apidsl"
)
var _ = API("cellar", func() { // API defines the microservice endpoint and
Title("The virtual wine cellar") // other global properties. There should be one
Description("A simple goa service") // and exactly one API definition appearing in
@azihsoyn
azihsoyn / es.sh
Last active January 1, 2016 11:09 — forked from rajraj/es.sh
cd ~
sudo yum update
sudo yum install java-1.7.0-openjdk.x86_64 -y
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.9.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
mv elasticsearch-* elasticsearch
sudo mv elasticsearch /usr/local/share