Skip to content

Instantly share code, notes, and snippets.

View davewongillies's full-sized avatar

Dave Wongillies davewongillies

View GitHub Profile

Keybase proof

I hereby claim:

  • I am davewongillies on github.
  • I am davewongillies (https://keybase.io/davewongillies) on keybase.
  • I have a public key whose fingerprint is 2149 9650 C301 0361 395A 406E FFE5 0B78 D42F D949

To claim this, I am signing this object:

@davewongillies
davewongillies / gist:892f6782abf1704106a9
Created October 15, 2014 23:04
mcollective 2.6.0 segfault
# mcollectived --no-daemonize --config /etc/mcollective/server.cfg
/usr/lib/ruby/1.9.1/timeout.rb:61: [BUG] Segmentation fault
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC :sleep
c:0003 p:0014 s:0007 b:0007 l:001d10 d:000006 BLOCK /usr/lib/ruby/1.9.1/timeout.rb:61
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP
@davewongillies
davewongillies / initial_data.json
Created December 18, 2014 04:23
starting up Sentry with initial_data.json
sentry --config=/var/sentry/sentry.conf.py start
Performing upgrade before service startup...
Syncing...
Creating tables ...
Installing custom SQL ...
Installing indexes ...
AttributeError: Problem installing fixture 'initial_data.json': 'NoneType' object has no attribute 'using'
@davewongillies
davewongillies / gist:f857d9ffe7b40c2008a0
Last active August 29, 2015 14:11
sentry c14b7a9b04ae1f2fe67c6f6badcfd10268813f83 fresh install
> sentry:0109_index_filtervalue_times_seen
> sentry:0110_index_filtervalue_last_seen
> sentry:0111_index_filtervalue_first_seen
> sentry:0112_auto__chg_field_option_value__chg_field_useroption_value__chg_field_pr
> sentry:0113_auto__add_field_team_status
> sentry:0114_auto__add_field_projectkey_roles
> sentry:0115_auto__del_projectcountbyminute__del_unique_projectcountbyminute_projec
> sentry:0116_auto__del_field_event_server_name__del_field_event_culprit__del_field_
> sentry:0117_auto__add_rule
> sentry:0118_create_default_rules
@davewongillies
davewongillies / gist:9f2df7b918b4b56236b5
Created February 5, 2015 06:24
mcollective 2.8.0 error: `require': cannot load such file -- mcollective/runner (LoadError)
→ mco --version
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- mcollective/runner (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/a.user/.gem/ruby/2.0.0/gems/mcollective-client-2.8.0/lib/mcollective.rb:52:in `<module:MCollective>'
from /Users/a.user/.gem/ruby/2.0.0/gems/mcollective-client-2.8.0/lib/mcollective.rb:28:in `<top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
from /Users/a.user/.gem/ruby/2.0.0/gems/mcollective-client-2.8.0/bin/mco:7:in `<top (required)>'
from /Users/a.user/.gem/ruby/2.0.0/bin/mco:23:in `load'
from /Users/a.user/.gem/ruby/2.0.0/bin/mco:23:in
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
maxconn 4096
user haproxy
group haproxy
daemon
listen rabbitmq 0.0.0.0:5672
mode tcp
@davewongillies
davewongillies / gist:2760696
Created May 21, 2012 06:02 — forked from haf/gist:1927153
Installing Graphite on Ubuntu 11.10 take 2
#number of seconds to use between flushing, default of 10, 1 for realtime
statsite_flush_interval=1
# 1 seconds * 1209600 datapoints = 2 week of 1 second granularity
# 10 seconds * 864000 datapoints = 2 months of 10-second granularity
# 60 seconds * 259200 datapoints = 6 months of 1-minute granularity
# 10 minutes * 262974 datapoints = ~3 years of 10-minute granularity
graphite_retentions='1:1209600,10:864000,60:259200,600:262974'
####################################
# BASIC REQUIREMENTS
@davewongillies
davewongillies / gist:2773166
Created May 23, 2012 03:50 — forked from chalmerj/gist:1492384
Init script for Graphite carbon-cache
#! /bin/sh
### BEGIN INIT INFO
# Provides: carbon-cache
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: carbon-cache init script
# Description: An init script for Graphite's carbon-cache daemon.
### END INIT INFO
@davewongillies
davewongillies / graphline.sh
Created July 21, 2012 02:18 — forked from mrtazz/graphline.sh
shell function to quickly check a graphite graph
#
# shell function to print graphite graphs as sparklines in the terminal
# needs https://github.com/holman/spark
#
function graphline() {
GRAPHITEHOST="graphite.example.com"
if [ ! -n "$1" ]; then print "Usage: $0 metric [minutes]"; return 1; fi
if [ ! -n "$2" ]; then MINUTES=10 ; else MINUTES=$2; fi
curl -s "${GRAPHITEHOST}/render?from=-${MINUTES}minutes&target=${1}&format=raw" | cut -d"|" -f 2 | spark ;
}
@davewongillies
davewongillies / check_aws_status.rb
Created August 6, 2012 11:09 — forked from jbraeuer/check_aws_status.rb
A Nagios/Icinga plugin to check AWS Service Health Dashboard (using Ruby+Nokogiri)
#! /usr/bin/ruby
#
# A script to check Amazon Webservice's Health Status Dashboard
#
# Jens Braeuer, github.com/jbraeuer
#
# Version 1.0
#