Skip to content

Instantly share code, notes, and snippets.

View davewongillies's full-sized avatar

Dave Wongillies davewongillies

View GitHub Profile
@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

On Mac OS X:

  • Install puppet 3.0.2, facter 1.6.17 and hiera 1.1.2
  • create /etc/puppet/puppet.conf
  • configure launchd puppet daemon
  • initial puppet run
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 / ElasticSearch Quick Guide.md
Last active December 17, 2015 22:39 — forked from timconradinc/gist:5654473
ElasticSearch Quick Guide

ElasticSearch Quick Guide

ElasticSearch for Logstash Overview

There are two ways to send data to ElasticSearch from Logstash. The first is the 'elasticsearch' output and the other is the 'elasticsearch_http' output. In a nutshell, the 'elasticsearch' output is tightly coupled with your elasticsearch cluster, and the 'elasticsearch_http' output isn't.

description "Tomcat Server"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 10 5
# run as non privileged user
# add user with this command:
## adduser --system --ingroup www-data --home /opt/apache-tomcat apache-tomcat
@davewongillies
davewongillies / production.ini.md
Last active December 18, 2015 01:39
Sentry Configuration for Rhodecode

Sentry Configuration for Rhodecode

Sentry is an alternative open source error aggregator. You must install python packages raven to enable.

The following settings go into your rhodecode production.ini

production.ini

################
@davewongillies
davewongillies / Running sentry under chaussette.md
Last active December 18, 2015 05:29
Running sentry under chaussette
  • In the home directory of the user that the sentry chausette process will run under: mkdir ~/.sentry
  • copy sentry.conf.py into ~/.sentry
  • running chaussette sentry.wsgi.application should be enough to get it started. Add options as required, eg:
chaussette sentry.wsgi.application --backend meinheld --port 8091
@davewongillies
davewongillies / gist:5855425
Last active December 18, 2015 22:38
Installing graphite-web into a virtualenv with circus and chaussette
# virtualenv graphite-web
# cd graphite-web
# . bin/activate
# pip install circus chaussette meinheld Django==1.3 Twisted==11.1.0 python-memcached==1.47 txAMQP==0.4 simplejson==2.1.6 django-tagging==0.3.1 gunicorn pytz pyparsing==1.5.7 http://cairographics.org/releases/py2cairo-1.8.10.tar.gz git+git://github.com/graphite-project/whisper.git#egg=whisper
# pip install git+git://github.com/graphite-project/graphite-web.git --install-option="--prefix=$VIRTUALENV_PREFIX/graphite-web" --install-option="--install-lib=$VIRTUALENV_PREFIX/graphite-web/lib/python2.7/site-packages"
@davewongillies
davewongillies / hp-scripting-toolkit-linux-9.40.md
Last active December 19, 2015 09:28
Running conrep from the HP Scripting Toolkit on 64-bit Ubuntu server

Running conrep from the HP Scripting Toolkit on 64-bit Ubuntu server

conrep from the HP Scripting Toolkit is used to make modifications to the system BIOS settings. To get it running on an 64-bit Ubuntu server, you'll need to install

  • libstdc++6:i386
  • libxml2:i386

Without it you'll get this error

$ ./conrep 
@davewongillies
davewongillies / 0_reuse_code.js
Created October 4, 2013 05:51
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console