Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

James Turnbull jamtur01

💭
I may be slow to respond.
View GitHub Profile
View gist:9125706
boot2docker.io 600 IN A 192.30.252.153
boot2docker.io 600 IN A 192.30.252.154
www.boot2docker.io 600 IN CNAME boot2docker.github.io.
View cnvrst.rb
require 'yaml'
require 'pp'
def run(command)
puts " + #{command}" if ENV['verbose']
if ENV['verbose']
puts " - #{system command}"
else
system command
end
@jamtur01
jamtur01 / find_docs.py
Created March 12, 2014 04:43
Finds Docs PRs, updates labels and opens in browser
View find_docs.py
import webbrowser
import sys
import requests
import json
mytoken = 'secret_token'
url = 'https://api.github.com/repos/dotcloud/docker'
hurl = 'https://github.com/dotcloud/docker'
addlabels = {}
labelarray = [ '/project/doc' ] #start with the docs label, and then any others for code
@jamtur01
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}
View keybase.md

Keybase proof

I hereby claim:

  • I am jamtur01 on github.
  • I am jamtur01 (https://keybase.io/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: [https://index.docker.io/v1/]
@jamtur01
jamtur01 / sh_docker.js
Created March 29, 2014 20:52
A SHJS - http://shjs.sourceforge.net/ - Syntax Highlighting for Docker Dockerfiles
View sh_docker.js
if (! this.sh_languages) {
this.sh_languages = {};
}
sh_languages['docker'] = [
[
[
/\b[+-]?(?:(?:0x[A-Fa-f0-9]+)|(?:(?:[\d]*\.)?[\d]+(?:[eE][+-]?[\d]+)?))u?(?:(?:int(?:8|16|32|64))|L)?\b/g,
'sh_number',
-1
],
View gist:10341979
root@docker:~# docker run -d ubuntu:12.04 /bin/bash
274d8a979ddba99b82befc2d2ab153c7decd0845c8cc1dee3f4e53e37d2d1eeb
root@docker:~# docker inspect 274d8a979ddba99b82befc2d2ab153c7decd0845c8cc1dee3f4e53e37d2d1eeb
[{
"ID": "274d8a979ddba99b82befc2d2ab153c7decd0845c8cc1dee3f4e53e37d2d1eeb",
"Created": "2014-04-10T04:12:06.923103947Z",
"Path": "/bin/bash",
"Args": [],
"Config": {
View gist:10646561
$ docker -H=docker.lovedthanlost.net:4243 info
2014/04/14 09:12:01 malformed HTTP response "\x15\x03\x01\x00\x02\x02"
$ docker --tls -H=docker.lovedthanlost.net:4243 info
Containers: 33
Images: 104
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Dirs: 170
Execution Driver: native-0.1