Skip to content

Instantly share code, notes, and snippets.

View tianon's full-sized avatar
♥️
TIANON

Tianon Gravi tianon

♥️
TIANON
View GitHub Profile
@tianon
tianon / diff.patch
Last active August 29, 2015 14:14
vendor.sh changes from 1.3.3 to master
diff --git a/hack/vendor.sh b/project/vendor.sh
similarity index 87%
rename from hack/vendor.sh
rename to project/vendor.sh
index 7ecb1a5..b60e42f 100755
--- a/hack/vendor.sh
+++ b/project/vendor.sh
@@ -39,7 +39,7 @@ clone() {
echo done
}
#!/bin/bash
set -e
# hello-world latest ef872312fe1b 3 months ago 910 B
# hello-world latest ef872312fe1bbc5e05aae626791a47ee9b032efa8f3bda39cc0be7b56bfe59b9 3 months ago 910 B
# debian latest f6fab3b798be 10 weeks ago 85.1 MB
# debian latest f6fab3b798be3174f45aa1eb731f8182705555f89c9026d8c1ef230cbf8301dd 10 weeks ago 85.1 MB
usage() {
+ cd src/github.com/cpuguy83/docker-jruby
+ git reset -q HEAD
+ git checkout -q -- .
+ git clean -dfxq
+ git checkout -q 384671d2c1b26465a38c6f9e645024b3ab217bad --
+ cd src/github.com/cpuguy83/docker-jruby/9000
+ git-set-mtimes
+ docker build -t jruby:dev src/github.com/cpuguy83/docker-jruby/9000
Sending build context to Docker daemon 2.56 kB
Sending build context to Docker daemon
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
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")
#!/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//\"/}"
#!/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 }')"
@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
@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 / 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 <[email protected]>
---> Running in 439365f937bf
---> 47a560ee0c2e
Removing intermediate container 439365f937bf
Step 2 : RUN apt-get update && apt-get install -y curl procps