Skip to content

Instantly share code, notes, and snippets.

gdm85 gdm85

Block or report user

Report or block gdm85

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
gdm85 / rsyslog.lua
Created Jun 16, 2015 — forked from cristifalcas/gist:b0a8b6e6d312096f9515
example plugin by cristi1979 to handle /dev/log
View rsyslog.lua
local math = require "math"
local dt = require "date_time"
local l = require "lpeg"
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 / shellinabox-build-fail.log
Last active Aug 29, 2015
shellinabox/shellinabox dpkg build failure
View shellinabox-build-fail.log
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 / ssh-knownhost
Last active Aug 29, 2015
ssh-knownhost by Colin Percival
View ssh-knownhost
#!/bin/sh -e
## original article:
# 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;
gdm85 / result-1.log
Last active Aug 29, 2015
Testing around ICC & linked containers features
View result-1.log
= = = = = 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
## @author gdm85
## debug some iptables traffic
gdm85 / docker-pr-8412-test-results.log
Created Oct 7, 2014
make test results for Docker PR 8412
View docker-pr-8412-test-results.log
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/" "docker:master" hack/ 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/
---> Making bundle: cross (in bundles/1.2.0-dev/cross)
Created symlinks: /go/src/ /go/src/ /go/src/ /go/src/
Created binary: /go/src/
gdm85 /
Last active Aug 29, 2015
testcase for Docker issue #8338 with import
## @author gdm85
## testcase for Docker issue 8338
wget -q -O- | bunzip2 | docker import - wheezy1
test -z ${PIPESTATUS[0]} && \
docker run wheezy1 /bin/bash -c "echo 'hello world'"
gdm85 /
Created Sep 19, 2014
Testcase for DNS caching bug
## @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
gdm85 / utils-use-native-urandom.diff
Last active Aug 29, 2015
Temptative patch to troubleshoot container id collision issue (updated at 15:15 UTC to add a mutex)
View utils-use-native-urandom.diff
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 (
- "crypto/rand"
gdm85 /
Created Sep 9, 2014
testcase for port-in-use Docker recognition issue
## @author gdm85
## testcase for inconsistent Docker port-in-use recognition
TMPD=$(mktemp -d) || exit $?
function cleanup() {
local CONTAINER="$1"
docker kill "$CONTAINER" >/dev/null && docker rm "$CONTAINER" >/dev/null
You can’t perform that action at this time.