-
jq to
/opt/jq
on container -
Mount docker unix socket when
docker run
$ docker run -v /var/run/docker.sock:/var/run/docker.sock -P -d container-name
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 airplay | |
import ( | |
"net/http" | |
"net/http/httptest" | |
"net/url" | |
"strconv" | |
"strings" | |
"testing" | |
) |
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 ( | |
"bufio" | |
"fmt" | |
"regexp" | |
"strings" | |
) | |
// http://tools.ietf.org/html/draft-ietf-mmusic-rfc2326bis-40#page-297 |
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
new Vue({ | |
el: '#main', | |
created: function() { | |
var vm = this; | |
superagent.get('https://api.github.com/emojis', function(response) { | |
vm.emojis = response.body; | |
}); | |
}, |
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
#!/bin/sh | |
# | |
# Usage: | |
# $ pecrant up | |
# $ pecrant halt | |
# | |
_pecrant_selected_id() { | |
vagrant global-status | awk '/^[[:alnum:]]{7} /' | peco | awk '{print $1}' |
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 ( | |
"github.com/armon/mdns" | |
"github.com/olekukonko/tablewriter" | |
"os" | |
"strconv" | |
) | |
func main() { |
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
;; See also https://github.com/skeeto/emacs-web-server | |
(defvar gongo-httpd->status-codes | |
'((200 . "OK") (403 . "Forbidden"))) | |
(defun gongo-httpd:start () | |
"8080 ポートで待ち受ける HTTP サーバを作成" | |
(interactive) | |
(make-network-process | |
:name "httpd" |
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
root@f437be42ca97:/# rrrspec-server worker --no-daemonize | |
Loading: /opt/lib/rrrspec-worker-config.rb | |
/var/lib/gems/2.0.0/gems/rrrspec-server-0.2.0/lib/rrrspec/server/worker_runner.rb:210:in `execute_with_logs': uninitialized constant RRRSpec::Server::WorkerRunner::Bundler (NameError) | |
from /var/lib/gems/2.0.0/gems/rrrspec-server-0.2.0/lib/rrrspec/server/worker_runner.rb:30:in `rsync' | |
from /var/lib/gems/2.0.0/gems/rrrspec-server-0.2.0/lib/rrrspec/server/worker_runner.rb:194:in `work' | |
from /var/lib/gems/2.0.0/gems/rrrspec-server-0.2.0/lib/rrrspec/server/worker_runner.rb:16:in `block in work_loop' | |
from /var/lib/gems/2.0.0/gems/rrrspec-server-0.2.0/lib/rrrspec/server/worker_runner.rb:14:in `loop' | |
from /var/lib/gems/2.0.0/gems/rrrspec-server-0.2.0/lib/rrrspec/server/worker_runner.rb:14:in `work_loop' | |
from /var/lib/gems/2.0.0/gems/rrrspec-server-0.2.0/lib/rrrspec/server/cli.rb:53:in `block (2 levels) in worker' |
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
items = { | |
'hoge' => 1, | |
'fuga' => 2, | |
'hago' => 3, | |
'foo' => 1, | |
'bar' => 8, | |
'baz' => 1, | |
'piyo' => 3, | |
'gongo' => 4, | |
'dududu' => 2 |
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 ( | |
"github.com/boppreh/gifencoder" | |
"image" | |
"image/gif" | |
"io/ioutil" | |
"os" | |
) |