Skip to content

Instantly share code, notes, and snippets.

@hatajoe
hatajoe / introduction-to-server-development.md
Created October 19, 2018 15:32
Introduction to server development

introduction-to-server-development

Introduction

サーバーアプリケーション開発にあたって必要な知識は幅広く存在します。 これを習得するための情報はWebや書籍に多くありますが、初学者にとって何から学ぶべきかは難しい問題です。 本セッションは、サーバーアプリケーション開発初心者に向けた入門を意識して作成しました。

ネットワークに関係する技術は、IaaS(Infrascructure as a Service)の登場をはじめコンテナ技術の一般化など、近年変革の時を迎えています。 これらの技術が、我々が提供するサービスを通じていかにユーザーの価値に繋がるのかを理解する必要があります。

@hatajoe
hatajoe / curl.sh
Created April 26, 2016 00:55
Sample: Parse JSON request body by labstack/echo
#!/bin/sh
curl -XPOST -H "content-type:application/json" -d '{"hoge": 1, "fuga": [2,3,4,5]}' localhost:1323
#!/bin/bash
base_dir=`pwd`
wget https://mecab.googlecode.com/files/mecab-0.996.tar.gz
tar zxfv mecab-0.996.tar.gz
cd mecab-0.996
./configure --enable-utf8-only
make
make check
@hatajoe
hatajoe / main.go
Last active October 6, 2015 15:52
This is not work for error "Go type not supported in export: "
// file: main.go
package main
import "C"
import (
"bitbucket.org/binet/go-ffi/pkg/ffi"
"fmt"
"net/http"
)
@hatajoe
hatajoe / hello.go
Last active September 28, 2015 14:06
`runtime/cgo: could not obtain pthread_keys' on darwin/amd64
// file: plugins/hello/hello.go
// $ go build -o libhello.so -buildmode=c-shared hello.go
package main
import "C"
import (
"log"
)