Skip to content

Instantly share code, notes, and snippets.

ansible-git
apache-tools
archlinux-artwork
atom-editor-bin
attica-qt4
auracle-git
auto-xflux
autoenv-git
automoc4
awesome-themes-git
a2jmidid
a52dec
aalib
abook
acetoneiso2
acpi
acpi_call
acpid
alsa-oss
alsa-plugins
@tomashley
tomashley / graphite.py
Created February 16, 2017 14:43 — forked from sacreman/graphite.py
Statsite Graphite + Dataloop Sink
"""
Supports flushing metrics to graphite
"""
import sys
import socket
import logging
class GraphiteStore(object):
def __init__(self, host="localhost", port=2003, prefix="statsite.", attempts=3):
@tomashley
tomashley / Vagrantfile
Created November 25, 2015 14:53 — forked from dazza-codes/Vagrantfile
Utilities to add an independent data disk to virtualbox vms using vagrant
# -*- mode: ruby -*-
# vi: set ft=ruby :
# This vagrant script relies on
# vagrant plugin install vagrant-triggers
VM_NAME = "vbox-dev"
VM_CPUS = 1
VM_MEMORY = 2 * 1024 # in MB
{
"extractors": [
{
"condition_type": "string",
"condition_value": "sudo:",
"converters": [],
"cursor_strategy": "copy",
"extractor_config": {
"regex_value": "sudo:\\s+(\\S+)\\s+:"
},
@tomashley
tomashley / hubot-init
Last active August 29, 2015 14:15 — forked from maethor/hubot-init
#!/bin/sh
### BEGIN INIT INFO
# Provides: hubot
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the hubot hubot service
# Description: starts the hubot bot for the Campfire rooms
#!/bin/sh
# This assumes you have:
# 1) A user called `hubot` in charge of the bot.
# 2) A file called /home/hubot/.hubotrc that contains the Hubot credentials.
#
# To set the adapter either edit bin/hubot to specify what you want or append
# `-- -a campfire` to the $DAEMON variable below.
#
### BEGIN INIT INFO
#!/bin/bash
# Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/
# Install stuff #
#################
# Install development tools and some misc. necessary packages
yum -y groupinstall "Development tools"
yum -y install zlib-devel # gen'l reqs