Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@gdm85
gdm85 / utils-use-native-urandom.diff
Last active August 29, 2015 14:06
Temptative patch to troubleshoot container id collision issue (updated at 15:15 UTC to add a mutex)
diff --git a/utils/utils.go b/utils/utils.go
index da6854b..0eb283a 100644
--- a/utils/utils.go
+++ b/utils/utils.go
@@ -2,12 +2,12 @@ package utils
import (
"bytes"
- "crypto/rand"
"crypto/sha1"
@gdm85
gdm85 / testcase-dns-lookup.sh
Created September 19, 2014 13:18
Testcase for DNS caching bug
#!/bin/bash
## @author gdm85
## tests DNS caching in Docker
##
#
if pgrep dnsmasq >/dev/null; then
echo "You are running dnsmasq, this test would not be consistent" 1>&2
exit 1
fi
@gdm85
gdm85 / testcase-save-import.sh
Last active August 29, 2015 14:07
testcase for Docker issue #8338 with import
#!/bin/bash
## @author gdm85
## testcase for Docker issue 8338
##
#
wget -q https://github.com/gdm85/tenku/releases/download/v0.3.0/wheezy.tar.bz2 -O- | bunzip2 | docker import - wheezy1
test -z ${PIPESTATUS[0]} && \
docker run wheezy1 /bin/bash -c "echo 'hello world'"
@gdm85
gdm85 / docker-pr-8412-test-results.log
Created October 7, 2014 08:59
make test results for Docker PR 8412
docker run --rm -it --privileged -e TIMEOUT -e BUILDFLAGS -e TESTFLAGS -e TESTDIRS -e DOCKER_GRAPHDRIVER -e DOCKER_EXECDRIVER -v "~/test/docker/bundles:/go/src/github.com/docker/docker/bundles" "docker:master" hack/make.sh binary cross test-unit test-integration test-integration-cli
bundles/1.2.0-dev already exists. Removing.
---> Making bundle: binary (in bundles/1.2.0-dev/binary)
Created binary: /go/src/github.com/docker/docker/bundles/1.2.0-dev/binary/docker-1.2.0-dev
---> Making bundle: cross (in bundles/1.2.0-dev/cross)
Created symlinks: /go/src/github.com/docker/docker/bundles/1.2.0-dev/cross/linux/amd64/docker /go/src/github.com/docker/docker/bundles/1.2.0-dev/cross/linux/amd64/docker-1.2.0-dev /go/src/github.com/docker/docker/bundles/1.2.0-dev/cross/linux/amd64/docker-1.2.0-dev.md5 /go/src/github.com/docker/docker/bundles/1.2.0-dev/cross/linux/amd64/docker-1.2.0-dev.sha256
Created binary: /go/src/github.com/docker/docker/bundles/1.2.0-dev/cross/linux/386/docker-1.2.0-dev
#!/bin/bash
## iptables-debug.sh
##
## @author gdm85
##
## debug some iptables traffic
#
IPT=/sbin/iptables
@gdm85
gdm85 / result-1.log
Last active August 29, 2015 14:18
Testing around ICC & linked containers features
= = = = = docker version
Client version: 1.5.0
Client API version: 1.17
Go version (client): go1.4.1
Git commit (client): a8a31ef
OS/Arch (client): linux/amd64
Server version: 1.5.0
Server API version: 1.17
Go version (server): go1.4.1
Git commit (server): a8a31ef
@gdm85
gdm85 / ssh-knownhost
Last active August 29, 2015 14:19
ssh-knownhost by Colin Percival
#!/bin/sh -e
## original article: http://www.daemonology.net/blog/2012-01-16-automatically-populating-ssh-known-hosts.html
# I hereby place this script in the public domain -- Colin Percival
# Usage
if [ $# -lt 1 ]; then
echo "usage: $0 host [fingerprint ...]" >/dev/stderr
exit 1;
fi
@gdm85
gdm85 / shellinabox-build-fail.log
Last active August 29, 2015 14:19
shellinabox/shellinabox dpkg build failure
builder@avenger:~/shellinabox# ./configure && make -j4 && dpkg-buildpackage
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
@gdm85
gdm85 / rsyslog.lua
Created June 16, 2015 19:30
example plugin by cristi1979 to handle /dev/log
local math = require "math"
local dt = require "date_time"
local l = require "lpeg"
l.locale(l)
local hostname = read_config("hostname")
local trim = read_config("trim") or true
local overwrite_timestamp = read_config("overwrite_timestamp") or false
local overwrite_hostname = read_config("overwrite_hostname") or false
@gdm85
gdm85 / heka-syslog.patch
Created February 9, 2016 19:55
Patch for heka for syslog datagram parser
From 9e77259573e912ff65dd4d7ed11989f00e85a6fb Mon Sep 17 00:00:00 2001
From: gdm85 <gdm85@users.noreply.github.com>
Date: Fri, 27 Mar 2015 12:32:54 +0100
Subject: [PATCH] Added raw syslog datagrams example
---
examples/raw_syslog_unixgram.toml | 44 +++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
create mode 100644 examples/raw_syslog_unixgram.toml