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
[rsyslog-with-fallback-decoder] | |
type = "MultiDecoder" | |
subs = ['WellFormedRyslogForwardFormatDecoder', 'BestGuessRyslogForwardFormatDecoder', 'SyslogParseFailureDecoder'] | |
cascade_strategy = "first-wins" | |
[WellFormedRyslogForwardFormatDecoder] | |
type = "SandboxDecoder" | |
module_directory = "/usr/share/heka/lua_modules" | |
filename = "/usr/share/heka/lua_decoders/rsyslog.lua" |
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 'keepass/password' | |
10.times do | |
password = KeePass::Password.generate('[Adbp]{20}', :remove_lookalikes => true); | |
p password | |
p `mysql -e 'select password("#{password}")\G'`.match(/\*(\w+)/)[1] | |
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
diff -ur ext/openssl/ossl_pkey_ec.c ext/openssl/ossl_pkey_ec.c | |
--- ext/openssl/ossl_pkey_ec.c 2012-02-19 06:09:11.000000000 -0800 | |
+++ source/ext/openssl/ossl_pkey_ec.c 2014-01-03 16:37:11.077561351 -0800 | |
@@ -757,8 +757,10 @@ | |
method = EC_GFp_mont_method(); | |
} else if (id == s_GFp_nist) { | |
method = EC_GFp_nist_method(); | |
+#if !defined(OPENSSL_NO_EC2M) | |
} else if (id == s_GF2m_simple) { | |
method = EC_GF2m_simple_method(); |
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 timeout 60 | |
spawn ./upgrade_nodes_pe3.sh <fqdn> <fqdn> <fqdn> | |
while {1} { | |
expect { | |
eof {break} | |
"The authenticity of host" {send "yes\r"} | |
"password for YOURUSER:" {send "PASSWORD\r"} | |
#"*\]" {send "exit\r"} | |
} |
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 | |
# | |
# Nagios/PuppetDB config generator | |
# https://gist.github.com/jfryman/6290985 | |
# | |
# Based on concept from puppetdb-external-naginator | |
# https://github.com/favoretti/puppetdb-external-naginator | |
# | |
# Generates nagios configs from puppet(db) exported resources. | |
# |
NewerOlder