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
================================================================================ | |
Recipe Compile Error in /tmp/kitchen/cache/cookbooks/sensu/recipes/rabbitmq.rb | |
================================================================================ | |
NoMethodError | |
------------- | |
No resource or method named `file' for `Chef::Recipe "rabbitmq"' | |
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
require 'csv' | |
DEFAULT_ATTRS = %w[ | |
name | |
fqdn | |
network.interfaces.eth1.addresses | |
network.interfaces.eth0.addresses | |
ec2.public_ipv4 | |
ec2.instance_id | |
run_list |
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 | |
interfaces() { | |
ip addr list | egrep '^[0-9]' | awk '{print $2}' | sed -e "s/://g" | grep -v lo | sort -g | |
} | |
is_default() { | |
local int=$1 | |
local default_int=$(ip route show | grep default | awk '{print $5}') | |
[ "x$int" == "x$default_int" ] |
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
--- nginx-1.4.3.pristine/src/event/ngx_event_openssl.h 2013-10-08 05:07:14.000000000 -0700 | |
+++ nginx-1.4.3/src/event/ngx_event_openssl.h 2013-10-29 11:19:37.045225518 -0700 | |
@@ -93,7 +93,7 @@ | |
#define NGX_SSL_BUFFER 1 | |
#define NGX_SSL_CLIENT 2 | |
-#define NGX_SSL_BUFSIZE 16384 | |
+#define NGX_SSL_BUFSIZE 1370 | |
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
apt_repository 'puppet' do | |
uri http://apt.puppetlabs.com/ | |
distribution node['lsb']['codename'] | |
components ['main', 'dependencies'] | |
key ?? | |
end | |
package 'puppet' |
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
user] | |
name = John Skopis | |
email = jskopis@twitter.com | |
[branch] | |
autosetupmerge = true | |
autosetuprebase = always | |
[alias] | |
st = status |
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 ruby | |
require 'open-uri' | |
require 'mysql2' | |
#for vmta in mailgate actions newsletters backqueue invitations wish-solicitations action-updates transactions; do for mta in pmta01 pmta03; do for domain in aol yahoo gmail hotmail comcast bellsouth att sbcglobal; do echo -n "&target="; cat tpl | sed -e "s/%VMTA%/$vmta/g" -e "s/%MTA%/$mta/g" -e "s/%DOMAIN%/$domain/g" -e '/\n/d' | while read line ; do echo -n "$line";done ;done; done; echo '&colorList=A4A4A4%2CFFFFFF%2C5858FA%2C08088A%2C088A08%2C58FA58%2CB40404%2CF78181&lineMode=connected&minXStep=10&from=-7days&width=1600&height=800';done > /tmp/render | |
#alias(divideSeries(transformNull(email.%MTA%.%VMTA%.%DOMAIN%.delivered,1),sumSeries(email.%MTA%.%VMTA%.%DOMAIN%.bounced,transformNull(email.%MTA%.%VMTA%.%DOMAIN%.delivered,1))),\\\"%DOMAIN%\\\") | |
mysql2 = Mysql2::Client.new( | |
:host => 'sfdb01.prod.causes.com', | |
:username => 'graphite', |
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
class ProxyMail | |
def initialize(contents) | |
# The mail gem is implemented using STDERR.puts for all warnings | |
# We want to suppress warnings of the format: | |
# WARNING: Could not parse (and so ignorning) 'Your message:' | |
@stderr = $stderr.clone | |
silence_warnings do | |
@mail = Mail.new(contents) | |
end | |
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 struct | |
from collections import defaultdict | |
# mysql -Ne "select si.space, CONCAT(st.SCHEMA,'.', st.NAME, '/', si.name) from INNODB_SYS_INDEXES si, INNODB_SYS_TABLES st where st.TABLE_ID=si.TABLE_ID" information_schema > map | |
def read_map(map_file = './map'): | |
with open(map_file, 'r') as fd: | |
return dict((int(k), v) for k, v in [line.strip().split() for line in fd.readlines()]) | |
def read_lru(lru_file = './ib_lru_dump'): |
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 ruby | |
# | |
require 'active_support/core_ext' | |
require 'benchmark' | |
class FooException < StandardError; end | |
def fun(depth = 0) | |
if depth == 150 |
OlderNewer