Skip to content

Instantly share code, notes, and snippets.

View maplebed's full-sized avatar

Ben Hartshorne maplebed

View GitHub Profile
# dmidecode 2.11
SMBIOS 2.5 present.
75 structures occupying 2549 bytes.
Table at 0x000F0450.
Handle 0xDA00, DMI type 218, 89 bytes
OEM-specific Type
Header and Data:
DA 59 00 DA B2 00 17 4B 0E 38 00 00 80 00 80 01
00 02 80 02 80 01 00 00 A0 00 A0 01 00 58 00 58

Keybase proof

I hereby claim:

  • I am maplebed on github.
  • I am maplebed (https://keybase.io/maplebed) on keybase.
  • I have a public key whose fingerprint is 1D0C 79B7 F6A6 0AAD 328F 5E86 C0E7 F961 2EB1 B167

To claim this, I am signing this object:

@maplebed
maplebed / gist:10696360
Created April 15, 2014 02:09
Gem version trouble with foodcritic and chefspec
:( ( 04/14/14@ 7:09PM )( maplebed@maplebook ):~/git/ganglia/chef-ganglia@master✗ ✹
➜ bundle install 15
Fetching gem metadata from https://rubygems.org/.......
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "yajl-ruby":
In Gemfile:
foodcritic (>= 3.0.0) ruby depends on
yajl-ruby (~> 1.1.0) ruby
context "unicast mode with host_cluster that doesn't exist in clusterport and no default cluster" do
let(:chef_run) do
runner = ChefSpec::Runner.new(
platform: 'ubuntu',
version: '12.04'
)
runner.node.set['ganglia']['unicast'] = true
runner.node.set['ganglia']['host_cluster'] = {
"default" => 0,
"not_in_clusterport" => 1
➜ export IFS='
'
:( ( 12/02/13@11:36AM )( maplebed@maplebook ):~/tmp
➜ args=($(ls -1)) 1
:) ( 12/02/13@11:36AM )( maplebed@maplebook ):~/tmp
➜ !echo
:) ( 12/02/13@11:36AM )( maplebed@maplebook ):~/tmp
➜ echo $args
file one file two four and five three
:) ( 12/02/13@11:36AM )( maplebed@maplebook ):~/tmp
@maplebed
maplebed / gist:7753701
Created December 2, 2013 18:06
The globals section of a sample gmond.conf setting the host spoofing
globals {
daemonize = yes
setuid = yes
user = ganglia
debug_level = 0
max_udp_msg_len = 1472
mute = no
deaf = no
host_dmax = 600 /*secs */
cleanup_threshold = 300 /*secs */
[08/01/13 19:26:14] [SSH] Opening SSH connection to benjslave2:22.
[08/01/13 19:26:14] [SSH] Authentication successful.
[08/01/13 19:26:15] [SSH] The remote users environment is:
HOME='/var/lib/jenkins'
IFS='
'
LANG='en_US.UTF-8'
LOGNAME='jenkins'
MAIL='/var/mail/jenkins'
OPTIND='1'
@maplebed
maplebed / gist:6082941
Created July 25, 2013 19:27
chef instance cleanup script.
require 'fog'
def remove(name)
# get some values from the node for future use
mynode = nodes.show(name)
instance_id = mynode[:ec2][:instance_id]
zone_id = mynode[:route53][:zone_id]
int_domain = mynode[:route53][:int_domain]
aws_creds = Chef::EncryptedDataBagItem.load("passwords", "aws")
root@benjenkinstest2:~# java -jar /home/jenkins/jenkins-cli.jar -s http://localhost:8080 install-plugin git-plugin
git-plugin is neither a valid file, URL, nor a plugin artifact name in the update center
No update center data is retrieved yet from: http://updates.jenkins-ci.org/update-center.json
git-plugin looks like a short plugin name. Did you mean 'null'?
name "ganglia"
description "ganglia node role"
run_list "role[base]", "recipe[ganglia]"
override_attributes "ganglia" => { "host_cluster" => {"misc" => 1, "default" => 0 }}