This file contains hidden or 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
18:08:45 root@ops-staging:/opt/graphite/conf | |
→ rabbitmqctl list_exchanges | |
Listing exchanges ... | |
amq.direct direct | |
amq.topic topic | |
amq.rabbitmq.trace topic | |
amq.rabbitmq.log topic | |
amq.fanout fanout | |
amq.headers headers | |
direct |
This file contains hidden or 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
file { | |
'/etc/sensu/conf.d/client.json': | |
content => template('sensu/client/client.json.erb'); | |
'/etc/sensu/config.json': | |
content => template('sensu/client/config.json.erb'); | |
'/etc/sensu/conf.d/check.procs.json': | |
content => template('sensu/client/check.procs.json.erb'); | |
'/etc/sensu/conf.d/basic_checks.json': | |
content => template('sensu/client/basic_checks.json.erb'); | |
'/etc/sensu/conf.d/check.haproxy.json': |
This file contains hidden or 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
21:03:58 ops@ops:~ | |
→ redis-server -v | |
Redis server version 2.4.17 (00000000:0) | |
21:03:02 ops@ops:~ | |
→ redis-cli | |
redis 127.0.0.1:6379> info | |
redis_version:2.4.17 | |
redis_git_sha1:00000000 | |
redis_git_dirty:0 |
This file contains hidden or 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
function c(a){throw a;}var aa=void 0,g=!0,j=null,k=!1;function ba(){return function(a){return a}}function m(a){return function(){return this[a]}}function n(a){return function(){return a}}var p; | |
function q(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var d=Object.prototype.toString.call(a);if("[object Window]"==d)return"object";if("[object Array]"==d||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==d||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; | |
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function r(a){return a!==aa}function ca(a){return"string"==typeof a}var da="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),fa=0;function ga(a){for(var b=0,d=0;d<a.length;++d)b=31*b+a.charCodeAt(d),b%=42 |
This file contains hidden or 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
module Rack | |
class ServerNameHeader | |
attr_reader :app, :hostname | |
def initialize(app) | |
@app = app | |
@hostname = `hostname`.strip | |
end | |
def call(env) | |
status, headers, body = *app.call(env) | |
headers['X-Server-Name'] = hostname |
This file contains hidden or 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
[2013-04-25 22:54:54,194][WARN ][http.netty ] [logstash] Caught exception while handling client http traffic, closing connection [id: 0x6c40010f, /127.0.0.1:39982 => /127.0.0.1:9200] | |
java.lang.IllegalArgumentException: empty text | |
at org.elasticsearch.common.netty.handler.codec.http.HttpVersion.<init>(HttpVersion.java:97) | |
at org.elasticsearch.common.netty.handler.codec.http.HttpVersion.valueOf(HttpVersion.java:62) | |
at org.elasticsearch.common.netty.handler.codec.http.HttpRequestDecoder.createMessage(HttpRequestDecoder.java:75) | |
at org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:189) | |
at org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:101) | |
at org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:500) | |
at org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.messageReceived(Replaying |
This file contains hidden or 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
[2013-04-25 16:47:45,248][WARN ][http.netty ] [Reptyl] Caught exception while handling client http traffic, closing connection [id: 0xfcaaa1a5, /127.0.0.1:59573 => /127.0.0.1:9200] | |
java.lang.IllegalArgumentException: empty text | |
at org.elasticsearch.common.netty.handler.codec.http.HttpVersion.<init>(HttpVersion.java:97) | |
at org.elasticsearch.common.netty.handler.codec.http.HttpVersion.valueOf(HttpVersion.java:62) | |
at org.elasticsearch.common.netty.handler.codec.http.HttpRequestDecoder.createMessage(HttpRequestDecoder.java:75) | |
at org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:189) | |
at org.elasticsearch.common.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:101) | |
at org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:500) | |
at org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDe |
This file contains hidden or 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
$ cat app/api/v2/debug.rb | |
module Api; module V2 | |
class Foobar; end | |
class Debug < Api::Base | |
get '/' do | |
@foobar = Foobar.new | |
bldr :'debug/index' | |
end | |
end | |
end; end |
This file contains hidden or 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
bash -c ' | |
<%= "export http_proxy=\"#{knife_config[:bootstrap_proxy]}\"" if knife_config[:bootstrap_proxy] -%> | |
export DEBIAN_FRONTEND=noninteractive | |
aptitude update | |
aptitude dist-upgrade -y -q | |
aptitude install -y -q build-essential binutils-doc gcc autoconf flex bison git-core | |
aptitude install -y -q libreadline6-dev zlib1g-dev libssl-dev libxml2-dev libxslt1-dev libcurl4-gnutls-dev | |
aptitude install -y -q cowsay fortune-mod htop toilet |
This file contains hidden or 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
curl -XPUT http://localhost:9200/_template/logstash_per_index -d' | |
{ | |
"template": "logstash*", | |
"settings": { | |
"index.query.default_field": "message", | |
"index.cache.field.type": "soft", | |
"index.store.compress.stored": true }, | |
"mappings": { | |
"_default_": { | |
"_all": { "enabled": false }, |