Skip to content

Instantly share code, notes, and snippets.

View tianon's full-sized avatar
♥️
TIANON

Tianon Gravi tianon

♥️
TIANON
  • @docker, but thoughts, comments, commits generally his own ("do not represent the views of Docker, Inc" etc etc)
  • Las Vegas, NV
  • 16:23 (UTC -07:00)
  • X @tianon
View GitHub Profile
@tianon
tianon / README.md
Last active December 11, 2015 14:19 — forked from mbostock/.block
@tianon
tianon / README.md
Last active December 18, 2015 12:49 — forked from mbostock/.block

This grouped bar chart is constructed from a CSV file storing the populations of different states by age group. The chart employs conventional margins and a number of D3 features:

$ docker images tianon/debian
REPOSITORY TAG ID CREATED SIZE
tianon/debian sid 48c561d00c03 5 weeks ago 159.4 MB (virtual 159.4 MB)
tianon/debian jessie c7a9f3b2159e 5 weeks ago 160.6 MB (virtual 160.6 MB)
tianon/debian 7.1 617698bd3cd3 5 weeks ago 157.5 MB (virtual 157.5 MB)
tianon/debian latest 08c9d0ea8240 9 weeks ago 157.5 MB (virtual 157.5 MB)
tianon/debian wheezy 08c9d0ea8240 9 weeks ago 157.5 MB (virtual 157.5 MB)
tianon/debian 7.0 a1390ca6935c 3 months ago 157.4 MB (virtual 157.4 MB)
tianon/debian 6.0.7 764a25351209 4 months ago 149.5 MB (virtual 149.5 MB)
tianon/debian squeeze 764a25351209 4 months ago 149.5 MB (virtual 149.5 MB)
@tianon
tianon / amd-8core-workstation.txt
Last active December 24, 2015 01:19
"docker run -i -t -privileged docker ./hack/make.sh test" against f435970 (0.6.3-dev) This was all done on Gentoo, of course.
$ docker run -i -t -privileged docker ./hack/make.sh test
/proc/self/fd /go/src/github.com/dotcloud/docker
/go/src/github.com/dotcloud/docker
---> Making bundle: test (in bundles/0.6.3-dev/test)
Fri Sep 27 01:26:51 UTC 2013
++ cd .
++ go test -v -ldflags '-X main.GITCOMMIT f435970 -X main.VERSION 0.6.3-dev -d -w'
warning: building out-of-date packages:
path/filepath
io/ioutil
@tianon
tianon / proc-1-cgroup
Created October 20, 2013 03:15
Docker on Debian Stable
1:perf_event,blkio,net_cls,freezer,devices,cpuacct,cpu,cpuset:/
@tianon
tianon / Dockerfile
Last active December 29, 2015 11:49
setting environment variables from ENTRYPOINT
FROM jpetazzo/busybox
ADD entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
CMD ["sh", "-c", "echo $SOME_TEST_VARIABLE"]
@tianon
tianon / Dockerfile
Last active December 29, 2015 11:58
pyenv in tianon/centos-null:5.9
FROM tianon/centos-null:5.9
RUN yum install -y wget
RUN wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm && rpm -Uvh epel-release-5-4.noarch.rpm && rm epel-release-5-4.noarch.rpm
RUN yum install -y git
RUN git clone https://github.com/yyuu/pyenv.git /.pyenv
ENV PYENV_ROOT /.pyenv
ENV PATH /.pyenv/bin:$PATH
@tianon
tianon / mountinfo
Created December 20, 2013 18:25
/proc/self/mountinfo
15 1 8:6 / / rw,noatime,nodiratime - ext4 /dev/sda6 rw,data=ordered
16 15 0:3 / /proc rw,nosuid,nodev,noexec,relatime - proc proc rw
17 15 0:14 / /run rw,nosuid,nodev,relatime - tmpfs tmpfs rw,size=3292172k,mode=755
18 15 0:5 / /dev rw,nosuid,relatime - devtmpfs udev rw,size=10240k,nr_inodes=4106451,mode=755
19 18 0:12 / /dev/mqueue rw,nosuid,nodev,noexec,relatime - mqueue mqueue rw
20 18 0:10 / /dev/pts rw,nosuid,noexec,relatime - devpts devpts rw,gid=5,mode=620,ptmxmode=000
21 18 0:15 / /dev/shm rw,nosuid,nodev,noexec,relatime - tmpfs shm rw
22 15 0:16 / /sys rw,nosuid,nodev,noexec,relatime - sysfs sysfs rw
23 22 0:7 / /sys/kernel/debug rw,nosuid,nodev,noexec,relatime - debugfs debugfs rw
24 22 0:17 / /sys/fs/cgroup rw,nosuid,nodev,noexec,relatime - tmpfs cgroup_root rw,size=10240k,mode=755
use Mojo::JSON;
my $json = Mojo::JSON->new;
my $str = '{"some":"json","more":"stuff"}';
my $obj = $json->decode($str);
$obj->{some} = 'changed';
$obj->{new} = 'brand new!';
delete $obj->{more}; # remove that nonsense
@tianon
tianon / output.txt
Created January 20, 2014 23:45
restarting Docker Ghost container http panic trace
2014/01/20 16:41:59 POST /v1.9/containers/mongodb-mms/restart?t=10
[/var/lib/docker|689cb5a3] +job restart(mongodb-mms)
[/var/lib/docker|689cb5a3] -job restart(mongodb-mms)
2014/01/20 16:41:59 http: panic serving @: runtime error: invalid memory address or nil pointer dereference
goroutine 63 [running]:
net/http.func·009()
/usr/lib/go/src/pkg/net/http/server.go:1093 +0xae
runtime.panic(0x875740, 0x10a25a8)
/usr/lib/go/src/pkg/runtime/panic.c:248 +0x106
github.com/dotcloud/docker/execdriver/lxc.(*driver).kill(0xc2100d83c0, 0x0, 0xf, 0xa040a0, 0x7f715fbba8e0)