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
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"
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 / 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
gdm85 / ssh-knownhost
Last active Aug 29, 2015
ssh-knownhost by Colin Percival
View ssh-knownhost
#!/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 / 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
View iptables-debug.sh
#!/bin/bash
## iptables-debug.sh
##
## @author gdm85
##
## debug some iptables traffic
#
IPT=/sbin/iptables
@gdm85
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/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
@gdm85
gdm85 / testcase-save-import.sh
Last active Aug 29, 2015
testcase for Docker issue #8338 with import
View testcase-save-import.sh
#!/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 / testcase-dns-lookup.sh
Created Sep 19, 2014
Testcase for DNS caching bug
View testcase-dns-lookup.sh
#!/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 / 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 (
"bytes"
- "crypto/rand"
"crypto/sha1"
@gdm85
gdm85 / port-testcase-7158.sh
Created Sep 9, 2014
testcase for port-in-use Docker recognition issue
View port-testcase-7158.sh
#!/bin/bash
## @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.