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 | |
### BEGIN INIT INFO | |
# Provides: logstash | |
### END INIT INFO | |
# Author: your name here <change email> | |
# | |
# Do NOT "set -e" |
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 python | |
# vim: set sw=4 sts=4 et foldmethod=indent : | |
"""mbox_to_mysql: Import messages from mbox files to a mysql database """ | |
# Mbox message handing is being done by mailbox module, which is a python core module. | |
# However, mbox FILE handling is done internally in this file, because the | |
# mailbox module does far more than we need, and takes up a lot of time to do it. | |
# | |
# Database handling is done through mysql.connector, which is not a core module; |
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
@@patterns_path ||= Set.new | |
if __FILE__ =~ /file:\/.*\.jar!.*/ | |
@@patterns_path += ["#{File.dirname(__FILE__)}/../../patterns/*"] | |
else | |
@@patterns_path += ["#{File.dirname(__FILE__)}/../../../patterns/*"] | |
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
task(){ | |
if [[ $# -eq '1' ]] && [[ "$1" =~ ^[0-9]+$ ]] ; then | |
command task $1 info | |
else | |
command task $@ | |
fi | |
} |
NewerOlder