Skip to content

Instantly share code, notes, and snippets.

View bdehamer's full-sized avatar

Brian DeHamer bdehamer

View GitHub Profile
query getOrganizationsQuery {
organizations {
id
name
owners {
id
email
}
memberCount
inviteCount

Keybase proof

I hereby claim:

  • I am bdehamer on github.
  • I am bdehamer (https://keybase.io/bdehamer) on keybase.
  • I have a public key ASD4OCYd3SmqZtEmK7wYXvXojHCPdquv3UfL-RV0-7NItgo

To claim this, I am signing this object:

@bdehamer
bdehamer / docker_image_tree.rb
Last active August 29, 2015 14:05
Format Docker Image Tree for D3.js Library
images = Docker::Image.all(all: 1)
nodes = images.each_with_object({}) do |image, memo|
memo[image.id] = {
id: image.id,
name: image.id[0..11],
parent_id: image.info['ParentId'],
children: []
}
#!/bin/bash
# References
# http://www.computerhope.com/unix/nc.htm#03
# https://github.com/daniloegea/netcat
# http://unix.stackexchange.com/questions/26715/how-can-i-communicate-with-a-unix-domain-socket-via-the-shell-on-debian-squeeze
# http://unix.stackexchange.com/questions/33924/write-inside-a-socket-open-by-another-process-in-linux/33982#33982
# http://www.linuxjournal.com/content/more-using-bashs-built-devtcp-file-tcpip
# http://www.dest-unreach.org/socat/
# http://stuff.mit.edu/afs/sipb/machine/penguin-lust/src/socat-1.7.1.2/EXAMPLES
@bdehamer
bdehamer / fog_model.rb
Created July 5, 2012 23:38
Fog Model Observer
require 'fog/hp/models/compute/address'
require 'fog/hp/models/compute/flavor'
require 'fog/hp/models/compute/image'
require 'fog/hp/models/compute/key_pair'
require 'fog/hp/models/compute/security_group'
require 'fog/hp/models/compute/server'
# Re-open Fog::Model
module Fog
class Model