This file contains hidden or 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
const bunyan = require('bunyan') | |
const mongoose = require('mongoose') | |
const Schema = mongoose.Schema; | |
const Log = mongoose.model('Log', new Schema({ | |
name: String, | |
hostname: String, | |
pid: Number, | |
level: Number, | |
msg: String, |
This file contains hidden or 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
<!DOCTYPE html> | |
<!-- | |
Copyright 2014 Michinobu Maeda. | |
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 |
This file contains hidden or 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/bash | |
for TRG in $@ | |
do | |
STT=`/usr/local/nagios/libexec/check_smtp -H $TRG` | |
if echo $STT | grep -q "SMTP OK" | |
then | |
echo $STT | |
exit 0 |
This file contains hidden or 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
<!DOCTYPE html> | |
<!-- | |
Copyright 2013 Michinobu Maeda. | |
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 |
This file contains hidden or 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
<html> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>RGB Colors 2</title> | |
<script> | |
function onload() { | |
var c = document.getElementById("pane"); | |
pane(c); | |
} |
This file contains hidden or 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
var notice = '\n' + | |
' Copyright 2013 Michinobu Maeda\n' + | |
'\n' + | |
' Licensed under the Apache License, Version 2.0 (the "License");\n' + | |
' you may not use this file except in compliance with the License.\n' + | |
' You may obtain a copy of the License at\n' + | |
'\n' + | |
' http://www.apache.org/licenses/LICENSE-2.0\n' + | |
'\n' + | |
' Unless required by applicable law or agreed to in writing, software\n' + |
This file contains hidden or 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 | |
set -e | |
ssh='ssh' | |
ec2din="ec2-describe-instances" | |
while [ $# -gt 0 ]; do | |
case $1 in | |
-*) | |
if [ -z "$2" ]; then | |
break |