Skip to content

Instantly share code, notes, and snippets.

View spheromak's full-sized avatar
🕵️‍♂️

Jesse Nelson spheromak

🕵️‍♂️
View GitHub Profile
@spheromak
spheromak / register_chef.py
Created January 21, 2012 08:56 — forked from Farzy/register_chef.py
Cobler module for Chef
"""
(C) 2010 Pragmatic Source
Farzad FARID <[email protected]>
register_chef.py: Register the server being installed on the Chef server
We assume that the 'knife' is installed locally on the Cobbler server.
Check https://fedorahosted.org/cobbler/wiki/CobblerTriggers for
documentation on Cobbler's triggers and API.
@spheromak
spheromak / cookbook_check.rb
Created March 17, 2012 03:19
Check the cookbooks are frozen and specified in non development environments
if node.chef_environment != 'development'
cookbooks = {}
node.cookbook_collection.values.each {|c| cookbooks[c.name.to_s] = c.version.to_s }
# See https://github.com/danryan/spice
r = gem_package "spice" do
version "0.8.0"
end
r.run_action(:install)
require 'json'
require 'uri'
require 'httpclient'
require 'redis'
require 'mw-irc'
# First, get an access token for your account on the command line
# curl -d '{"scopes":["repo"],"note":"Post-Receive Hooks"}' -u 'username:******' https://api.github.com/authorizations
# Paste your access token here
@spheromak
spheromak / .gemrc
Created October 22, 2014 01:13 — forked from jch/.gemrc
---
gem: --no-ri --no-rdoc
benchmark: false
verbose: true
update_sources: true
sources:
- http://rubygems.org/
backtrace: true
bulk_threshold: 1000