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
// ==UserScript== | |
// @name Fix Kibana Search Box | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description See https://github.com/elastic/kibana/issues/7801 for what this fixes. | |
// @author http://github.com/chrislwade | |
// @match http://*/app/kibana | |
// @grant GM_addStyle | |
// ==/UserScript== |
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 'psych' | |
# NOTE(chrislwade): See https://github.com/tenderlove/psych/issues/42 for more details. | |
# Monkey patch to deal with strings that look like dates but aren't really | |
# dates. The example encountered within our context is product codes in the | |
# form of ####-##-## which looks like a date on the surface but is really a | |
# good old string. This patch simply aims to replace the buggy version of | |
# "date" handling with one that behaves like the new implementation in Psych | |
# while leaving the remaining functionality of the existing Psych version |
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
function redcar { | |
if [ -f plugin.rb ]; then | |
echo "Found 'plugin.rb'!" | |
echo "Assuming this directory is a Redcar plugin." | |
echo "Running with --show-log, --log-level=debug, and without --fork." | |
wrapped_redcar --show-log --log-level=debug $* | |
elif [ -f lib/redcar.rb ] && [ -f bin/redcar ]; then | |
echo "Found 'lib/redcar.rb' and 'bin/redcar'!" | |
echo "Assuming this is the Redcar application directory." | |
echo "Running with --show-log, --log-level=debug, and without --fork." |