Skip to content

Instantly share code, notes, and snippets.

View zsprackett's full-sized avatar

S. Zachariah Sprackett zsprackett

View GitHub Profile
##################### ElasticSearch Configuration Example #####################
# This file contains an overview of various configuration settings,
# targeted at operations staff. Application developers should
# consult the guide at <http://elasticsearch.org/guide>.
#
# The installation procedure is covered at
# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html>.
#
# ElasticSearch comes with reasonable defaults for most settings,
diff -ruN php-5.6.30.orig/Zend/zend_language_scanner.c php-5.6.30/Zend/zend_language_scanner.c
--- php-5.6.30.orig/Zend/zend_language_scanner.c 2017-01-18 19:17:47.000000000 -0500
+++ php-5.6.30/Zend/zend_language_scanner.c 2017-06-25 18:47:16.000000000 -0400
@@ -38,6 +38,9 @@
#ifdef PHP_WIN32
# include <Winuser.h>
#endif
+#ifndef _WIN32
+# include "zend_signal.h"
+#endif
input {
tcp {
port => 1514
type => syslog
}
udp {
port => 1514
type => syslog
}
tcp {
diff --git a/lib/hbc/container/zip.rb b/lib/hbc/container/zip.rb
index 5425d7f..2d59064 100644
--- a/lib/hbc/container/zip.rb
+++ b/lib/hbc/container/zip.rb
@@ -1,6 +1,6 @@
class Hbc::Container::Zip < Hbc::Container::Base
def self.me?(criteria)
- criteria.file.include? 'compressed-encoding=application/zip;'
+ criteria.file.include? 'compressed-encoding=application/zip;' or 'application/zip; charset=binary'
end
# If you are running more than one instances of graylog2-server you have to select one of these
# instances as master. The master will perform some periodical tasks that non-masters won't perform.
is_master = true
# The auto-generated node ID will be stored in this file and read after restarts. It is a good idea
# to use an absolute file path here if you are starting graylog2-server from init scripts or similar.
node_id_file = /etc/graylog2-server-node-id
# You MUST set a secret to secure/pepper the stored user passwords here. Use at least 64 characters.
# Generate one by using for example: pwgen -s 96
#!/usr/bin/env ruby
#
# Copyright (C) 2014 - S. Zachariah Sprackett <zac@sprackett.com>
#
require 'rubygems'
require 'json'
require 'open-uri'
import org.graylog2.plugin.logmessage.LogMessage
import java.util.regex.Matcher
import java.util.regex.Pattern
rule "apache_access"
when
m : LogMessage( facility == "local4" )
then
Matcher matcher =
Pattern.compile("^\\S+\\s+apache:\\s+(\\S+)\\s+(\\S+)\\s+\\S+\\s+(\\S+)\\s+\\[(.+)]\\s+(.*)$").matcher(m.getShortMessage());
input {
stdin {
type => "syslog"
}
#tcp {
# port => 1514
# type => syslog
#}
#udp {
# port => 1514
SugaBooga : ~/sensu-plugin-spec [master●●] [0] $ bundle exec bin/sensu-plugin-spec -p ../sensu_plugin/plugin-test
Run options: --seed 37690
# Running:
........
Finished in 0.547995s, 14.5987 runs/s, 14.5987 assertions/s.
8 runs, 8 assertions, 0 failures, 0 errors, 0 skips
@zsprackett
zsprackett / gist:8043581
Created December 19, 2013 18:06
VAGRANT_LOG=debug
SugaBooga : ~/t [0] $ VAGRANT_LOG=debug /Applications/Vagrant/bin/vagrant up --provider=vmware_fusion
INFO global: Vagrant version: 1.4.1
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/Applications/Vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_DETECTED_OS="Darwin"
INFO global: VAGRANT_INSTALLER_ENV="1"
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/commands/box/plugin.rb