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
{ | |
"order" : 0, | |
"template" : "*stash-*", | |
"mappings" : { | |
"properties" : { | |
"useragent" : { "type" : "string", "index" : "not_analyzed" } | |
} | |
} | |
} |
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 | |
# | |
# chkconfig: 35 99 99 | |
# description: Node.js /home/nodejs/sample/app.js | |
# | |
. /etc/rc.d/init.d/functions | |
USER="node" |
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
;; watchdog-cfg is just a hash with host, port, etc. | |
(streams | |
;; irrelevant code ommited :) | |
(where (service #"riemann server") | |
(let [send-watchdog (forward (riemann.client/tcp-client watchdog-cfg))] | |
(fn watchdog-sending [event] | |
(try (send-watchdog event) | |
(catch Exception exc | |
(tell-ops (utils/exception->event exc)))))))) |
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/perl -w | |
# | |
# Jesper Nyerup <[email protected]> | |
my $ipmitool = '/usr/bin/ipmitool'; | |
my @chararray = split(//, join(' ', @ARGV)); | |
usage() if (@chararray == 0 or @chararray > 14); | |
system("$ipmitool raw 0x6 0x58 193 0x0 0x0 ". |