This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[cache] | |
GRAPHITE_STORAGE_DIR = /var/lib/graphite/ | |
GRAPHITE_ROOT = /opt/graphite/ | |
CONF_DIR = /etc/carbon/ | |
LOG_DIR = /var/log/carbon/ | |
PID_DIR = /var/run/carbon/ | |
LOG_UPDATES = False | |
WHISPER_AUTOFLUSH = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Author:: Seth Chisamore <schisamo@opscode.com> | |
# Cookbook Name:: python | |
# Provider:: pip | |
# | |
# Copyright:: 2011, Opscode, Inc <legal@opscode.com> | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import collections | |
import datetime | |
from os import path | |
import pickle | |
import sys | |
if len(sys.argv) < 2: | |
print('Usage: bindify.py zonefile') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Remove puppet and chef from ubuntu/trusty | |
apt-get remove -y -qq chef puppet | |
# Remove unused packages | |
apt-get autoremove -y -qq | |
# Add the vagrant node primary addresses | |
echo " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" Process URL for intersphinx targets and emit html or text """ | |
def validuri(string): | |
return string | |
from sphinx.ext.intersphinx import read_inventory_v2 | |
from posixpath import join | |
import pprint | |
import argparse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
from tornado import gen, ioloop, web | |
import queries | |
class WidgetRequestHandler(web.RequestHandler): | |
def initialize(self): | |
self.session = queries.TornadoSession() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import rabbitpy | |
MSG_COUNT = 100 | |
FILENAME = 'messages.dump' | |
with rabbitpy.Connection('amqp://guest:guest@localhost:5672/%2f') as conn: | |
with conn.channel() as channel: | |
queue = rabbitpy.Queue(channel, 'example') | |
count = 0 | |
with open(FILENAME, 'wb') as handle: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VAGRANT_LOG=debug vagrant destroy -f | |
INFO global: Vagrant version: 1.6.3 | |
INFO global: Ruby version: 2.0.0 | |
INFO global: RubyGems version: 2.0.14 | |
INFO global: VAGRANT_EXECUTABLE="/Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.3/bin/vagrant" | |
INFO global: VAGRANT_LOG="debug" | |
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/Applications/Vagrant/bin/../embedded" | |
INFO global: VAGRANT_INSTALLER_VERSION="2" | |
INFO global: VAGRANT_DETECTED_OS="Darwin" | |
INFO global: VAGRANT_INSTALLER_ENV="1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=INFO REPORT==== 16-Jun-2014::22:44:20 === | |
Starting RabbitMQ %%VSN%% on Erlang R16B03-1 | |
Copyright (C) 2007-2014 GoPivotal, Inc. | |
Licensed under the MPL. See http://www.rabbitmq.com/ | |
=INFO REPORT==== 16-Jun-2014::22:44:20 === | |
node : rabbit@gmr-home | |
home dir : /Users/gmr | |
config file(s) : (none) | |
cookie hash : J7HY1En7UzrPxhwINZe5SA== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import rabbitpy | |
import uuid | |
ROUTING_KEY = 'message.foo' | |
with rabbitpy.Connection('amqp://localhost:5672/%2f') as conn: | |
with conn.channel() as channel: | |
# The primary exchange is where we normally publish messages |