Skip to content

Instantly share code, notes, and snippets.

Jeremy Bingham ctdk

Block or report user

Report or block ctdk

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
ctdk / bsdgames-osx.rb
Last active Jun 18, 2018
A homebrew formula for installing bsdgames-osx. For now, just plunk it into /usr/local/Library/Formula/ and run "brew install bsdgames-osx". Tested successfully in MacOS X 10.7 and 10.8. If it fails to compile, try adding the "--with-clang" option. Some versions of clang will also require CFLAGS="-std=c11" to compile correctly.
View bsdgames-osx.rb
require 'formula'
class BsdgamesOsx < Formula
homepage ''
url ''
sha1 '31013cbc8fbad71f1e3e0b9b85fd7c943219a99b'
head ''
version '2.19.3'
depends_on :bsdmake => :build
ctdk / node-test-bigger.rb
Created Jun 22, 2015
A ruby script to create a whole bunch of chef nodes.
View node-test-bigger.rb
#!/usr/bin/env ruby
require 'chef-api'
require 'fauxhai'
include ChefAPI::Resource
ChefAPI.configure do |config|
config.endpoint = 'http://HOSTNAME:4545'
config.client = 'admin'
ctdk / grafana.rb
Created Apr 22, 2016
grafana formula, in progress
View grafana.rb
require "language/go"
class Grafana < Formula
desc "Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & OpenTSDB."
homepage ""
url ""
version "3.0-beta5"
sha256 "db9fcc0f4d90236d0cdaba2ab1ddd06bc59264aff93ead5c3a1b680804c8f8cd"
head ""
View gist:8359172
%w{sites-available sites-enabled mods-available mods-enabled}.each do |dir|
directory "#{node[:apache][:dir]}/#{dir}" do
mode 0755
owner "root"
group "root"
action :create
ctdk / gist:8247645
Created Jan 3, 2014
Ohai 6.14.0 data from a debian/390 box with Chef 0.10.10 installed
View gist:8247645
Linux d390 2.6.32-5-s390x #1 SMP Sun May 6 03:12:45 UTC 2012 s390x
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu May 31 15:06:52 2012 from
jeremy@d390:~$ ohai
View clang.patch
--- tcp_wrappers-20.orig/tcp_wrappers/fix_options.c 1999-04-22 18:57:28.000000000 -0700
+++ tcp_wrappers-20/tcp_wrappers/fix_options.c 2013-06-30 17:27:44.000000000 -0700
@@ -28,7 +28,7 @@ static char sccsid[] = "@(#) fix_options
#define BUFFER_SIZE 512 /* Was: BUFSIZ */
/* fix_options - get rid of IP-level socket options */
struct request_info *request;
View gist:5437849
int xiafs_rename(struct inode * old_dir, const char * old_name, int old_len,
struct inode * new_dir, const char * new_name, int new_len,
int must_be_dir)
/* TODO: Come back and fix race condition stuff */
static struct wait_queue_head_t * wait = NULL;
static int lock = 0;
int result;
while (lock)
View twitter.html
{% if site.twitter_user %}
<h1>On Twitter:</h1>
<p><br /><a href="{{ site.twitter_user }}" target="_blank">My Tweets, on Twitter.</a></p>
<a href="{{ site.twitter_user }}" class="twitter-follow-button" data-show-count="{{ site.twitter_show_follower_count }}">Follow @{{ site.twitter_user }}</a>
{% endif %}
View gist:e7220c64ef72299feaeb
lookup load_host {
entry host=cassandra* {
highCrit = 10
highWarn = 8
entry host=mariadb* {
highCrit = 8
highWarn = 6
entry host=* {
View gist:3063448
include_recipe "apt"
apt_repository "moomoo" do
distro = (node[:platform_version].to_i == 5) ? "lenny" : "squeeze"
uri ""
components [ "main", "contrib" ]
distribution distro
key ""
action :add
You can’t perform that action at this time.