sudo apt-get install docker && sudo usermod -a -G docker $USERログインし直しでdockerが使えるようになります。 (一部のディストリではdockerデーモンを起動する設定が必要な場合もあり)
| #!/bin/bash | |
| eval `go test -c -work |& head -n1` | |
| gdb -tui `basename $PWD`.test -d $WORK -ex "b main.main" -ex "run" |
| $ sudo debootstrap --components=main,universe,multiverse trusty trusty http://ja.archive.ubuntu.com/ubuntu/ | |
| $ sudo chroot trusty apt-get clean # remove cached packages | |
| $ sudo tar -C trusty -c . | docker import - nobonobo/trusty | |
| $ docker push nobonobo/trusty |
| { | |
| "imports": [ | |
| "/default.json" | |
| ], | |
| "preferences": { | |
| "fontFamily": "Ricty", | |
| "fontSize": 17, | |
| "showContextBar": true, | |
| "highlightActiveLine": false, | |
| "theme": "monokai" |
| curl https://bootstrap.pypa.io/get-pip.py | python |
| # 接続方法 | |
| # boot2docker on OS-Xの場合 | |
| # sudo route add 172.17.0.0 `boot2docker ip 2>/dev/null` 255.255.0.0 | |
| # open vnc://$(docker inspect -f "{{.NetworkSettings.IPAddress}}" CID):5900 | |
| FROM ubuntu:trusty | |
| ENV DEBIAN_FRONTEND noninteractive | |
| RUN sed -i 's/\/archive.ubuntu.com/\/jp.archive.ubuntu.com/g' /etc/apt/sources.list && \ | |
| apt-get update && apt-get upgrade -y -q |
| $ go get golang.org/x/tools/cmd/gomvpkg | |
| $ go get github.com/nobonobo/jsonrpc | |
| $ gomvpkg -from github.com/nobonobo/jsonrpc -to hoge/jsrpc | |
| 以上の操作で「import "hoge/jsrpc"」で使えるようになるみたい。 |
| import sys | |
| import time | |
| import signal, errno | |
| from contextlib import contextmanager | |
| import fcntl | |
| @contextmanager | |
| def timeout(seconds): | |
| def timeout_handler(signum, frame): | |
| pass |
| go get -u github.com/gopherjs/gopherjs | |
| go get -u github.com/google/gxui/... | |
| go get -u honnef.co/go/js/dom | |
| gopherjs serve | |
| open http://localhost:8080/github.com/google/gxui/samples/ |