Skip to content

Instantly share code, notes, and snippets.

Kevin Nuckolls knuckolls

Block or report user

Report or block knuckolls

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am knuckolls on github.
  • I am knuckolls (https://keybase.io/knuckolls) on keybase.
  • I have a public key ASBBN2ZM7FvEIa39qJHzyVx4GYEAqYvguW0Q98Yjt0ET9wo

To claim this, I am signing this object:

View bumpme
Wed Mar 1 22:13:14 UTC 2017
@knuckolls
knuckolls / chef-run-now
Last active Dec 15, 2015
chef-run-now bash script for forcing the chef-client daemon to wake up and do a chef run
View chef-run-now
#!/usr/bin/env bash
## This sends the USR1 signal to the currently running chef-client daemon process.
## It says "hey wake up and do a chef run right now plz kthx"
ps aux | grep Ssl | grep chef-client | awk '{ print $2 }' | xargs -I {} sudo kill -USR1 {}
@knuckolls
knuckolls / AAA-usage.txt
Last active Dec 15, 2015
General Vagrant configuration for berkshelf cookbooks that works with chef-solo or chef-client and grabs chef-client information from knife.rb.
View AAA-usage.txt
Gem versions are important due to dependency pinning problems w/ Berkshelf, Chef, and Vagrant
circa March 15th, 2013.
The older version of chef won't impact the version of chef that gets provisioned on your vagrant
box, it's just for loading the knife.rb configuration.
Use bundle exec if you want these things to operate together correctly.
$ bundle exec vagrant up solo
$ bundle exec berks upload
etc...
@knuckolls
knuckolls / gist:5154871
Created Mar 13, 2013
first cut @ example proposed whisk.yml for multiple providers
View gist:5154871
mixins:
chef_defaults:
user-data: user_data/before_bootstrap.sh
template: chef_full
aws_defaults:
provider: aws
image: ami-950680fc # ubuntu instance store
subnet: subnet-12345678 # private subnet
region: us-east-1
flavor: m1.small
@knuckolls
knuckolls / gist:5154870
Created Mar 13, 2013
first cut @ example proposed whisk.yml for multiple providers
View gist:5154870
mixins:
chef_defaults:
user-data: user_data/before_bootstrap.sh
template: chef_full
aws_defaults:
provider: aws
image: ami-950680fc # ubuntu instance store
subnet: subnet-12345678 # private subnet
region: us-east-1
flavor: m1.small
View relevant lines in my base.rb
# Install the hipchat notification gem
gem_package "hipchat" do
action :nothing
end.run_action(:install)
Gem.clear_paths
# Install the handler to the handlers folder
template "#{node['chef_handler']['handler_path']}/hipchat-notification-handler.rb" do
source "hipchat-notification-handler.rb"
@knuckolls
knuckolls / default.rb
Created Apr 20, 2012
hostname template example
View default.rb
template "/etc/hostname" do
source "hostname.erb"
owner "root"
group "root"
mode "0644"
variables :hostname => node.name
notifies :run, resources(:execute => "update-hostname"), :immediately
end
View gist:1854322
set nocompatible
set bs=2
set backspace=indent,eol,start
set errorbells
set nowrap
"tell vim I use a dark background. Syntax highlighting (color coded text) will adjust to more appropriate colors.
set background=dark
"make sure that bottom status bar is running.
@knuckolls
knuckolls / gist:1667296
Created Jan 24, 2012
desired amqp arguments syntax
View gist:1667296
#what i would like
input {
amqp {
# ship logs to the 'rawlogs' fanout queue.
type => "all"
host => "myhost"
exchange => "rawlogs"
name => "rawlogs"
durable => true
exclusive => false
You can’t perform that action at this time.