Skip to content

Instantly share code, notes, and snippets.

View jamtur01's full-sized avatar
💭
I may be slow to respond.

James Turnbull jamtur01

💭
I may be slow to respond.
View GitHub Profile
@jamtur01
jamtur01 / prepare-commit-msg
Created January 6, 2014 22:22
prepare-commit-msg for Docker commits
#!/bin/sh
#
GH_USER=$(git config --get github.user)
SOB=$(git var GIT_AUTHOR_IDENT | sed -n "s/^\(.*>\).*$/Docker-DCO-1.0-Signed-off-by: \1 $GH_USER/p")
grep -qs "^$SOB" "$1" || echo "\n$SOB" >> "$1"
root@docker:~/saltmaster# docker run -t -i salt-master salt-master -d -l debug
[DEBUG ] Reading configuration from /etc/salt/master
[DEBUG ] loading log_handlers in ['/var/cache/salt/master/extmods/log_handlers', '/usr/lib/pymodules/python2.7/salt/log/handlers']
[DEBUG ] Skipping /var/cache/salt/master/extmods/log_handlers, it is not a directory
[DEBUG ] None of the required configuration sections, 'logstash_udp_handler' and 'logstash_zmq_handler', were found the in the configuration. Not loading the Logstash logging handlers module.
[DEBUG ] Configuration file path: /etc/salt/master
@jamtur01
jamtur01 / TOC.md
Last active December 31, 2015 19:08
TOC

Docker User Guide

Overview

About Docker

New Features

Getting Support

Docker 0.7.0 RC5

You can download the binary for the 0.7.0 RC5 release here. This is a static binary with all dependencies included.

This RC should not be used over the top of an existing Docker installs! This RC does not include the ability to migrate existing installations to the new graph drivers, a feature that will be included in the final release.

You will still need to ensure that tar and lxc are installed on your system before running Docker.

@jamtur01
jamtur01 / Charles SC restaurant recommendations
Created November 3, 2013 01:45
Charles SC restaurant recommendations
http://mccradysrestaurant.com/
http://www.huskrestaurant.com/home/
http://twoboroughslarder.com/
http://xiaobaobiscuit.com/
http://eattheordinary.com/
http://magnolias-blossom-cypress.com/
http://www.thegrocerycharleston.com/
http://butcherandbee.com/
http://hallschophouse.com/
http://msroses.com/
{
"server": {
"accessLog": "/var/log/hipache_access.log",
"port": 80,
"workers": 5,
"maxSockets": 100,
"deadBackendTTL": 30,
"address": ["10.202.30.31"],
"address6": ["fe80::1031:3bff:fe12:1dd1/64"]
},
docker run -privileged -lxc-conf=lxc.aa_profile=unconfined -v /var/lib/docker -t -i ubuntu /bin/bash
2013/09/09 19:07:37 POST /v1.4/containers/create
Unable to find image 'ubuntu' (tag: latest) locally
2013/09/09 19:07:37 POST /v1.4/images/create?fromImage=ubuntu&tag=
Pulling repository ubuntu
8dbd9e392a96: Download complete
b750fe79269d: Download complete
27cf78414709: Download complete
2013/09/09 19:07:55 POST /v1.4/containers/create
2013/09/09 19:07:55 POST /v1.4/containers/0c13ad4d67e6/start
@jamtur01
jamtur01 / plugins.markdown
Created August 28, 2013 14:47
List of plugins in book

= Plugins used in book

== Inputs

lumberjack file stdin syslog redis

input {
file {
type => "postfix"
path => ["/var/log/mail.*"]
}
file {
type => "syslog"
path => [ "/var/log/auth.log" ]
}
file {
$ /usr/bin/java -jar /opt/logstash/logstash.jar kibana
No such command "kibana"
Usage: logstash <command> [command args]
Run a command with the --help flag to see the arguments.
For example: logstash agent --help
Available commands:
agent - runs the logstash agent
version - emits version info about this logstash
web - runs the logstash web ui