This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
type AccessCheckStatus int | |
const ( | |
_ AccessCheckStatus = iota | |
// Allow ... | |
Allow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"sync" | |
) | |
type Person struct { | |
Name string | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker run -t -i -rm user/image bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/hashicorp/serf/blob/master/Makefile で使われてる以下のgoの文法の意味調べる: | |
go list -f '{{range .TestImports}}{{.}} {{end}}' ./... | |
まず-fはフォーマットの指定。詳しくはgo help listを見る。 | |
引数の./...はgo help packagesによると | |
As a special case, x/... matches x as well as x's subdirectories. | |
For example, net/... expands to net and packages in its subdirectories. | |
らしい。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Building/installing the docker client on OS X: https://groups.google.com/forum/#!msg/docker-user/8m0Eh5nw-1U/J3SGYXqn1OMJ | |
$ go version | |
go version go1.2 darwin/amd64 | |
$ go env | |
GOARCH="amd64" | |
GOBIN="" | |
GOCHAR="6" | |
GOEXE="" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Intstruction | |
https://github.com/Blackrush/vim-gocode | |
** Workaround for Mac OS X user | |
https://github.com/Blackrush/vim-gocode/wiki/Installation-on-OS-X |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* プラグイン検索(いつも忘れるのでメモ) | |
:h neobundle-unite-source-neobundle-search | |
:Unite neobundle/search | |
* Plugin | |
** Go | |
https://github.com/Blackrush/vim-gocode | |
↑本家のお墨付き: https://github.com/nsf/gocode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://docs.fluentd.org/articles/free-alternative-to-splunk-by-fluentd | |
# td-agentを既にbrewで入れてしまったときの手順。 | |
for i in fluent-plugin-elasticsearch fluent-plugin-kibana-server fluent-plugin-embedded-elasticsearch | |
do | |
echo $i | |
done | |
curl -Ls http://docs.fluentd.org/misc/fluentd-kibana-elasticsearch/fluentd-kibana-elasticsearch.conf > test.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Server starter | |
# | |
# Server::Starter | |
http://dl.dropboxusercontent.com/u/224433/plackcon/index.html#14 | |
# | |
# Performance |
NewerOlder