Skip to content

Instantly share code, notes, and snippets.

View vagelim's full-sized avatar

vagelim vagelim

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<vxml version = "2.1">
<form>
<record name="message" beep="true" maxtime="60s">
<prompt>Please leave your message after the beep, then press any key.</prompt>
</record>
<block>
<prompt>Here's what you recorded <value expr="message"/>.</prompt>
</block>
<block>
@vagelim
vagelim / activemq_58.yaml
Created September 28, 2016 21:21
activemq i hate you
instances:
- host: localhost
port: 1099
# user: username
# password: password
# process_name_regex: .*process_name.* # Instead of specifying a host, and port. The agent can connect using the attach api.
# # This requires the JDK to be installed and the path to tools.jar to be set below.
# tools_jar_path: /usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar # To be set when process_name_regex is set
# name: activemq_instance
# # java_bin_path: /path/to/java # Optional, should be set if the agent cannot find your java executable
[default]
access_token =
add_encoding_exts =
add_headers =
bucket_location = US
ca_certs_file =
cache_file =
check_ssl_certificate = True
check_ssl_hostname = True
cloudfront_host = cloudfront.amazonaws.com
@vagelim
vagelim / changes_nova.conf
Created August 9, 2016 13:01
add this to your nova.conf, restart Nova
[oslo_messaging_notifications]
driver = messaging
notification_topics = notifications
notify_on_state_change = vm_and_task_state
instance_usage_audit_period = hour
instance_usage_audit = True
default_notification_level = INFO
notify_api_faults = true
@vagelim
vagelim / haproxy.cfg.example
Created July 24, 2016 16:58
minimal example highlighting haproxy user and group
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 777 level admin
stats timeout 30s
user haproxy
group haproxy
daemon
@vagelim
vagelim / haproxy.py
Last active July 24, 2016 16:35
Allow the use of socket connect for HAProxy stats
# (C) Datadog, Inc. 2012-2016
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
# stdlib
from collections import defaultdict
import copy
import re
import time
# 3rd party
@vagelim
vagelim / provider.tf
Created June 23, 2016 15:23
DigitalOcean Terraform Provider config
variable "do_token" {}
variable "pub_key" {}
variable "pvt_key" {}
variable "ssh_fingerprint" {}
variable "machine_name" {}
provider "digitalocean" {
token = "YOUR TOKEN HERE, FROM https://cloud.digitalocean.com/settings/api/tokens"
}
{
"board_title": "Marshal - CouchDB Screenboard",
"read_only": false,
"board_bgtype": "board_graph",
"created": "2016-06-15T15:59:19.408753+00:00",
"original_title": "Marshal - CouchDB Screenboard",
"modified": "2016-06-17T18:42:10.978304+00:00",
"height": 80,
"width": "100%",
"template_variables": [],
{"board_title": "Marshal - CouchDB Screenboard", "read_only": false, "board_bgtype": "board_graph", "created": "2016-06-15T15:59:19.408753+00:00", "original_title": "Marshal - CouchDB Screenboard", "modified": "2016-06-17T10:30:43.451780+00:00", "height": 80, "width": "100%", "template_variables": [], "templated": true, "widgets": [{"board_id": 92838, "autoscale": true, "title_size": 16, "title": true, "title_align": "left", "title_text": "HTTP Request Rate", "height": 13, "tile_def": {"viz": "timeseries", "requests": [{"q": "per_second(avg:couchdb.httpd.requests{*})", "aggregator": "avg", "conditional_formats": [{"palette": "white_on_yellow", "value": "1000", "comparator": ">"}, {"palette": "white_on_green", "value": null, "comparator": "<"}], "type": "area", "style": {"palette": "blue"}}], "autoscale": false, "custom_unit": null}, "width": 42, "timeframe": "4h", "y": 23, "x": 44, "legend_size": "0", "type": "query_value", "legend": false}, {"board_id": 92838, "title_size": 16, "title": true, "title_align":
@vagelim
vagelim / test_analysis.txt
Created March 17, 2016 16:29
Test analysis of #music
==SERVICES==
Spotify: 175
YouTube: 21
SoundCloud: 4
==========
====USERS====
raycolletti: 121
matt: 107
john: 66
scottanderson: 62