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 | |
import logging.config | |
import sumologger | |
from sumologger import SumoHTTPHandler | |
logging.config.dictConfig(sumologger.LOGGING) | |
logger = logging.getLogger("sumologger") | |
logger.debug("Nifty log message") |
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
curl -o /tmp/sumo.sh https://collectors.sumologic.com/rest/download/linux/64 | |
sh /tmp/sumo.sh -q -dir "/usr/local/SumoCollector" | |
/etc/init.d/collector stop | |
cat > /usr/local/SumoCollector/config/custom_sources.json << END | |
{ | |
"api.version": "v1", | |
"sources": [ | |
{ | |
"sourceType": "LocalFile", | |
"name": "LocalAuth", |
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
Metadata-Version: 1.0 | |
Name: carbon | |
Version: <%=graphite_ver%> | |
Summary: Backend data caching and persistence daemon for Graphite | |
Home-page: https://launchpad.net/graphite | |
Author: Chris Davis | |
Author-email: chrismd@gmail.com | |
License: Apache Software License 2.0 | |
Description: UNKNOWN | |
Platform: UNKNOWN |
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
NoMethodError - undefined method `decode_www_form' for URI:Module: | |
./lib/gdash/sinatra_app.rb:208:in `link_to_print' | |
/home/bwhaley/gdash/lib/gdash/../../views/layout.erb:40:in `evaluate_source' | |
/usr/lib/ruby/gems/1.8/gems/tilt-1.3.3/lib/tilt/template.rb:144:in `cached_evaluate' | |
/usr/lib/ruby/gems/1.8/gems/tilt-1.3.3/lib/tilt/template.rb:127:in `evaluate' | |
/usr/lib/ruby/gems/1.8/gems/tilt-1.3.3/lib/tilt/template.rb:76:in `render' | |
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.3/lib/sinatra/base.rb:686:in `render' | |
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.3/lib/sinatra/base.rb:694:in `render' | |
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.3/lib/sinatra/base.rb:694:in `catch' | |
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.3/lib/sinatra/base.rb:694:in `render' |
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
set nocompatible | |
syntax enable | |
set encoding=utf-8 | |
set showcmd " display incomplete commands | |
filetype plugin indent on " load file type plugins + indentation | |
"" Whitespace | |
set nowrap " don't wrap lines | |
set tabstop=2 shiftwidth=2 " a tab is two spaces | |
set expandtab " use spaces, not tabs |
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 'getoptlong' | |
PLUGIN_NAME = 'tcpconns' | |
def usage | |
puts("#{$0} -h <fqdn> [-i <sampling_interval>]") | |
exit | |
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 ruby | |
require 'getoptlong' | |
PLUGIN_NAME = 'tcpconns' | |
def usage | |
puts("#{$0} -h <fqdn> [-i <sampling_interval>]") | |
exit | |
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
#!/bin/sh | |
set -e | |
git-update-server-info | |
# | |
# Hook to update the /etc/puppet with the lastest git changes | |
# | |
# To enable this hook, rename this file to "post-receive". | |
read oldrev newrev refname |
NewerOlder