This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 9e77259573e912ff65dd4d7ed11989f00e85a6fb Mon Sep 17 00:00:00 2001 | |
From: gdm85 <[email protected]> | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= = = = = 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## iptables-debug.sh | |
## | |
## @author gdm85 | |
## | |
## debug some iptables traffic | |
# | |
IPT=/sbin/iptables |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |