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
  • 08:54 (UTC -07:00)
  • X @tianon
View GitHub Profile
@tianon
tianon / apt-wtf.sh-session
Last active August 29, 2015 14:05
Why you no remove these 7 packages, APT???
$ docker run -it --rm debian:wheezy bash
root@9ea67f28938b:/# apt-get update && apt-get install -y curl --no-install-recommends
...
The following extra packages will be installed:
libcurl3 libgcrypt11 libgnutls26 libgpg-error0 libgssapi-krb5-2 libidn11
libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2
libp11-kit0 librtmp0 libsasl2-2 libssh2-1 libssl1.0.0 libtasn1-3
Suggested packages:
rng-tools krb5-doc krb5-user
Recommended packages:
(print "hello")
(print "hyfriends!")
@tianon
tianon / .godir
Last active August 29, 2015 14:06
first pass at a raw DNS interface to Docker
github.com/tianon/rawdns
@tianon
tianon / failing-build.sh-session
Created September 22, 2014 23:16
failing perl 5.18.2 docker build
$ docker build 5.018.002-64bit
Sending build context to Docker daemon 3.072 kB
Sending build context to Docker daemon
Step 0 : FROM buildpack-deps
---> 133626b602ad
Step 1 : MAINTAINER Peter Martini <PeterCMartini@GMail.com>
---> Running in 439365f937bf
---> 47a560ee0c2e
Removing intermediate container 439365f937bf
Step 2 : RUN apt-get update && apt-get install -y curl procps
@tianon
tianon / irssi-config-keyboard
Last active August 29, 2015 14:07
"keyboard = ();" from irssi
keyboard = (
{ key = "^Z"; id = "change_window"; data = "1"; },
{ key = "meta-1"; id = "change_window"; data = "1"; },
{ key = "meta-2"; id = "change_window"; data = "2"; },
{ key = "meta-3"; id = "change_window"; data = "3"; },
{ key = "meta-4"; id = "change_window"; data = "4"; },
{ key = "meta-5"; id = "change_window"; data = "5"; },
{ key = "meta-6"; id = "change_window"; data = "6"; },
{ key = "meta-7"; id = "change_window"; data = "7"; },
{ key = "meta-8"; id = "change_window"; data = "8"; },
@tianon
tianon / build-jruby:dev.log
Created November 6, 2014 01:22
failing jruby:dev build
+ cd bashbrew/src/github.com/cpuguy83/docker-jruby
+ git reset -q HEAD
+ git checkout -q -- .
+ git clean -dfxq
+ git checkout -q fe814254b51c4f619ec2561df421259c32b27c63 --
+ cd bashbrew/src/github.com/cpuguy83/docker-jruby/9000
+ bashbrew/git-set-mtimes
+ docker build -t jruby:dev bashbrew/src/github.com/cpuguy83/docker-jruby/9000
Sending build context to Docker daemon 3.072 kB
#!/bin/bash
set -e
image='tianon/speedtest'
layer='b31651d7665036bcf58a0b6b0d7aca173daff87b003ec50621cb0fde8d68864f'
# docker inspect b31651d7665036bcf58a0b6b0d7aca173daff87b003ec50621cb0fde8d68864f | grep '"Size"'
# "Size": 580580561,
# ("Content-Length: 228991341" though...)
token="$(curl -sSL -o /dev/null -D- -H 'X-Docker-Token: true' "https://index.docker.io/v1/repositories/$image/images" | awk -F ':[[:space:]]*|\r' '$1 == "X-Docker-Token" { print $2 }')"
#!/bin/bash
set -e
image='alunduil/roundcube'
tag='latest'
token="$(curl -sSL -o /dev/null -D- -H 'X-Docker-Token: true' "https://index.docker.io/v1/repositories/$image/images" | awk -F ':[[:space:]]*|\r' '$1 == "X-Docker-Token" { print $2 }')"
imageId="$(curl -sSL -H "Authorization: Token $token" "https://registry-1.docker.io/v1/repositories/$image/tags/$tag")"
echo "${imageId//\"/}"
diff --git a/display.go b/display.go
index fc52fcd..1aefc3a 100644
--- a/display.go
+++ b/display.go
@@ -34,7 +34,7 @@ func truncate(s string) string {
func DisplayPullRequests(c *cli.Context, pulls []*gh.PullRequest, notrunc bool) {
w := newTabwriter()
- fmt.Fprintf(w, "NUMBER\tSHA\tLAST UPDATED\tCONTRIBUTOR\tASSIGNEE\tTITLE")
+ fmt.Fprintf(w, "URL\tLAST UPDATED\tCONTRIBUTOR\tTITLE")
diff -Nru golang-1.3.2/VERSION golang-1.3.3/VERSION
--- golang-1.3.2/VERSION 2014-09-25 22:46:55.000000000 +0000
+++ golang-1.3.3/VERSION 2014-10-01 01:50:25.000000000 +0000
@@ -1 +1 @@
-go1.3.2
\ No newline at end of file
+go1.3.3
\ No newline at end of file
diff -Nru golang-1.3.2/debian/changelog golang-1.3.3/debian/changelog
--- golang-1.3.2/debian/changelog 2014-09-26 21:21:47.000000000 +0000