Skip to content

Instantly share code, notes, and snippets.

View davewongillies's full-sized avatar

Dave Wongillies davewongillies

View GitHub Profile
@janschumann
janschumann / gist:e9bb6a0298101a465d94
Created February 6, 2015 14:47
Install omniout_crowd with gitlab via puppet
file_line { 'omniauth_crowd-gem':
path => '/opt/gitlab/embedded/service/gitlab-rails/Gemfile',
line => 'gem "omniauth_crowd", "2.2.2"',
require => Package['gitlab']
}
file_line { 'patch-devise-rb':
path => '/opt/gitlab/embedded/service/gitlab-rails/config/initializers/devise.rb',
line => " provider_arguments << provider['args'].symbolize_keys",
match => "^ provider_arguments << provider\\['args'\\]\$",
@shawn-sterling
shawn-sterling / graphite
Created February 14, 2012 21:30 — forked from drawks/graphite
Graphite on uwsgi/nginx
#This is the "site config" for nginx
upstream django {
# Distribute requests to servers based on client IP. This keeps load
# balancing fair but consistent per-client. In this instance we're
# only using one uWGSI worker anyway.
ip_hash;
server unix:/tmp/uwsgi.sock;
}
server {
@lusis
lusis / graphTemplates.conf
Created June 27, 2012 18:07 — forked from mleinart/graphTemplates.conf
Solarized graph template for Graphite
[solarized-dark]
background = #002b36
foreground = #839496
majorLine = #fdf6e3
minorLine = #eee8d5
lineColors = #268bd2,#859900,#dc322f,#d33682,#db4b16,#b58900,#2aa198,#6c71c4
fontName = Sans
fontSize = 10
fontBold = False
fontItalic = False
@davewongillies
davewongillies / graphTemplates.conf
Created December 8, 2012 03:21
Better looking defaults for graphite
[default]
background = white
foreground = black
majorLine = grey
minorLine = rose
lineColors = 0fff00aa,0f337799,0f000077,ff000077
fontName = Helvetica
fontSize = 10
fontBold = False
fontItalic = False
@mfournier
mfournier / gist:5883828
Created June 28, 2013 10:35
example collectd processes plugin
<Plugin "processes">
ProcessMatch "carbon-cache" "python.+carbon-cache"
ProcessMatch "carbon-aggregator" "python.+carbon-aggregator"
</Plugin>
@rodjek
rodjek / 0_description.md
Last active December 19, 2015 03:18
check_puppet_run_health

check_puppet_run_health

A Nagios check that connects to PuppetDB and determines the Puppet agent run health on a host.

Requires

  • PuppetDB
  • A puppetmaster configured to send reports to PuppetDB

States

# example.org private hosts
Host example-jumphost
Hostname jumphost.example.org
Host *.private.example.org *.exmpl
StrictHostKeyChecking no
ProxyCommand nohup ssh -Ax example-jumphost nc $(echo %h | awk '/^*\.exmpl/ { split($0, a, "."); print a[1] ".private.example.org" } /^*.private.example.org/ { print $0 }') %p
@cp
cp / README.md
Last active December 20, 2015 19:09
Cloudability Shopify Dashboard

Cloudability for Dashing

This is a simple number widget that shows you your current cloud spending for the current month, compared to last month. It is powered by the Cloudability API.

You will need to create and set your Cloudability API key to use this widget. After creating an account, you can obtain an API key here.

Dependencies

This uses the cloudability gem. You will need to add it to your Gemfile and bundle install

<!-- note that this requires the rabbitmq management plugin -->
<!-- also requires collectd 5.1 with curl_json plugin support -->
<Plugin curl_json>
<URL "http://localhost:55672/api/overview">
Instance "rabbitmq_overview"
User "guest"
Password "guest"
<Key "message_stats/publish">
Type "counter"
</Key>
@mlafeldt
mlafeldt / recipe.rb
Created January 9, 2015 10:47
Package Go tools with fpm-cookery (automatically uses godep dependencies if present)
class ChefRunner < FPM::Cookery::Recipe
GOPACKAGE = "github.com/mlafeldt/chef-runner"
name "chef-runner"
version "0.8.0"
revision 1
source "https://#{GOPACKAGE}/archive/v#{version}.tar.gz"
sha256 "a7de23f989f8353ecf838b551a8ceff09b83c8aeff2553b2c31d57615f8fcc53"
description "The fastest way to run Chef cookbooks"