I hereby claim:
- I am yaauie on github.
- I am yaauie (https://keybase.io/yaauie) on keybase.
- I have a public key whose fingerprint is 0FA5 1969 4D7F 08F0 083F A1B6 CF2C 1D14 E392 052D
To claim this, I am signing this object:
| diff --git a/lib/logstash/plugin_mixins/jdbc.rb b/lib/logstash/plugin_mixins/jdbc.rb | |
| index c9bc547..934a4f1 100644 | |
| --- a/lib/logstash/plugin_mixins/jdbc.rb | |
| +++ b/lib/logstash/plugin_mixins/jdbc.rb | |
| @@ -162,6 +162,7 @@ module LogStash::PluginMixins::Jdbc | |
| raise LogStash::ConfigurationError, "#{e}. #{message}" | |
| end | |
| @database = jdbc_connect() | |
| + @database.extension(:informix_windowing) | |
| @database.extension(:pagination) |
| #!/usr/bin/env ruby | |
| # A quick and very dirty script to list the effective lucene schema from an elasticsearch index mapping | |
| # | |
| # USAGE: | |
| # cat index_mappings.json | lucene-list-fields-from-elasticsearch-index-mappings.rb | |
| # cat cluster_mappings.json | jq '.["index_name"].mappings' | lucene-list-fields-from-elasticsearch-index-mappings.rb | |
| # | |
| # | |
| # Copyright 2018 Ry Biesemeyer (@yaauie) |
| ## | |
| # Determine the number of whole years elapsed between two [Time] objects. | |
| # It is assumed that the provided [Time] objects are in the same time-zone | |
| # and part of a single continuous chronology. | |
| # | |
| # @param time1 [Time] | |
| # @param time2 [Time] | |
| # | |
| # @return [Integer] | |
| # |
I hereby claim:
To claim this, I am signing this object:
| # Copyright 2018 Ry Biesemeyer (@yaauie) | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| #!/usr/bin/env bash -x | |
| # prereq: tar | |
| package="${1:?package}" | |
| file="${2:?file}" | |
| tar -xOf $package data.tar.gz | tar -zxO $file |
| # Copyright 2018 Ry Biesemeyer (@yaauie) | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| #!/usr/bin/env bash -e | |
| # | |
| # Ensure Trailing Newline: ensures that the given plaintext file ends with a | |
| # newline character, appending in-place only if it is missing. | |
| # | |
| # Portable on POSIX-based or POSIX-compatible systems, as it uses POSIX-standard | |
| # invocations of `wc`, `tail`, and `echo`. | |
| # | |
| # Copyright 2018 Ry Biesemeyer | |
| # |
| class Logstash::Filters::CacheCommon < LogStash::Filters::Base | |
| config :get, validate: :hash, required: false | |
| config :set, validate: :hash, required: false | |
| def register | |
| @get ||= {} | |
| @set ||= {} | |
| if (@get.empty? && @set.empty?) |
| #!/usr/bin/env sh | |
| if which jq ; then | |
| cat | jq -r '(map(keys) | add | unique) as $cols | map(. as $row | $cols | map($row[.])) as $rows | $cols, $rows[] | @csv' | |
| else | |
| >&2 echo "\033[31mERROR: $(basename $0) requires jq\033[0m" | |
| exit 127 | |
| fi |