Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

James Turnbull jamtur01

I may be slow to respond.
View GitHub Profile
View gist:9125706 600 IN A 600 IN A 600 IN CNAME
View cnvrst.rb
require 'yaml'
require 'pp'
def run(command)
puts " + #{command}" if ENV['verbose']
if ENV['verbose']
puts " - #{system command}"
system command
jamtur01 /
Created March 12, 2014 04:43
Finds Docs PRs, updates labels and opens in browser
import webbrowser
import sys
import requests
import json
mytoken = 'secret_token'
url = ''
hurl = ''
addlabels = {}
labelarray = [ '/project/doc' ] #start with the docs label, and then any others for code
jamtur01 / hashes.rst
Created March 16, 2014 05:06
Template for hashes
View hashes.rst
title:Package and File Signatures
description:This page includes all the Docker package and file signatures and hashes used to verify downloads.
keywords:binaries, installation, docker, documentation, hash, signature, package

Package and File hashes and signatures

View gist:9586622
Registering file input {:path=>["/var/log/secure", "/var/log/messages"], :level=>:info}
No sincedb_path set, generating one based on the file path {:sincedb_path=>"/root/.sincedb_2a4be4329ee4405425fe42a7e40250e5", :path=>["/var/log/secure", "/var/log/messages"], :level=>:info}
Registering file input {:path=>["/var/log/cron"], :level=>:info}
No sincedb_path set, generating one based on the file path {:sincedb_path=>"/root/.sincedb_1e3cf6fba627b1a5d046b00da35fa7cb", :path=>["/var/log/cron"], :level=>:info}
Pipeline started {:level=>:info}

Keybase proof

I hereby claim:

  • I am jamtur01 on github.
  • I am jamtur01 ( on keybase.
  • I have a public key whose fingerprint is F8B4 0CC6 6074 2F32 44D6 492A 215A FE50 E414 7032

To claim this, I am signing this object:

View gist:9821587
docker info
Containers: 112
Images: 108
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Dirs: 332
Execution Driver: native-0.1
Kernel Version: 3.8.0-29-generic
Username: training
Registry: []
jamtur01 / sh_docker.js
Created March 29, 2014 20:52
A SHJS - - Syntax Highlighting for Docker Dockerfiles
View sh_docker.js
if (! this.sh_languages) {
this.sh_languages = {};
sh_languages['docker'] = [
View gist:10341979
root@docker:~# docker run -d ubuntu:12.04 /bin/bash
root@docker:~# docker inspect 274d8a979ddba99b82befc2d2ab153c7decd0845c8cc1dee3f4e53e37d2d1eeb
"ID": "274d8a979ddba99b82befc2d2ab153c7decd0845c8cc1dee3f4e53e37d2d1eeb",
"Created": "2014-04-10T04:12:06.923103947Z",
"Path": "/bin/bash",
"Args": [],
"Config": {
View gist:10646561
$ docker info
2014/04/14 09:12:01 malformed HTTP response "\x15\x03\x01\x00\x02\x02"
$ docker --tls info
Containers: 33
Images: 104
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Dirs: 170
Execution Driver: native-0.1