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 | |
# | |
# File: check_mysql_slavestatus.sh | |
# Release Version: 0.1.1 | |
# Created 2012/12/10 | |
# License: MIT | |
# Author: Takayuki Saito <github:taka3110> | |
# How to use: "chmod + x" and please add on plugins directory. | |
# | |
######################## |
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 | |
PNAME=memcached | |
PPORT=11211 | |
case $1 in | |
start) sudo /etc/init.d/$PNAME start ;; | |
stop) sudo /etc/init.d/$PNAME stop ;; | |
restart) sudo /etc/init.d/$PNAME restart ;; | |
stats) | |
sudo echo "sleep 1;echo stats" > /tmp/$PNAME.sh |
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 | |
#cacti-fastinstall.sh | |
#taka3110 | |
#for CentOS6 | |
cp -pi /etc/sysconfig/selinux ~/selinux.org | |
sed -i -e "s/SELINUX=enforcing/SELINUX=disabled/" /etc/sysconfig/selinux | |
setenforce 0 | |
yum -y install rrdtool rrdtool-perl net-snmp net-snmp-utils httpd mysql-server php-mysql php wget | |
/etc/init.d/mysqld start |
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
# Description: | |
# subnetを教えてくれる | |
# | |
# Commands: | |
# hubot <subnet> - サブネット表記はCIDR表記 or サブネットマスク | |
module.exports = (robot) -> | |
robot.respond /255.255.255.0/i, (msg) -> | |
msg.send "/24 256IP" | |
robot.respond /255.255.255.128/i, (msg) -> |
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
# Description: | |
# 今日、どんなランチが良いか迷ってる時に教えてくれる | |
# | |
# Commands: | |
# hubot 今日のランチ - 今日の気分に合ったランチを教えてくれる | |
module.exports = (robot) -> | |
robot.respond /今日の昼ごはん|今日のランチ|今日の昼飯|今日の昼ご飯|今日の昼御飯/i, (msg) -> | |
msg.send msg.random [ | |
"今日は中華ですね。", |
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 | |
case $1 in | |
"api" ) /etc/init.d/sensu-api restart ;; | |
"server" ) /etc/init.d/sensu-server restart ;; | |
"client" ) /etc/init.d/sensu-client restart ;; | |
"all" ) service sensu-server restart ; service sensu-api restart ; service sensu-client restart ;; | |
esac | |
exit |
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/bash | |
######################## | |
###### Base info | |
######################## | |
NEWDATE=`/bin/date --date='today' +%Y%m%d` | |
DELDATE=`/bin/date --date='7 days ago' +%Y%m%d` | |
BACKUPDIR=/your/path | |
LIST="/tmp/list$$.txt" | |
######################## |
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/bash | |
# Description: 当日のバックアップをs3に送るするだけのシェル | |
# 削除はS3のライフサイクルで実施。 | |
# | |
######################## | |
###### Base info | |
######################## | |
BACKUPDIR=/your/path | |
# 通知用(メール通知が必要であればこちらに記入) | |
#MAILTO="[email protected]" |
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/bash | |
# | |
# File: more_than_alerts.sh | |
# Release Version : 1.0 | |
# Created 2019/07/16 | |
# Licens: MIT | |
# Auther [email protected] | |
# How to use: | |
# For zabbix server | |
# "chmod + x" and please add on your scripts directory. |
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
合同会社インフラ屋の採用テストです。 | |
制限時間は30分ですが、守っても守らなくてもどちらでも構いません。 | |
Web上で検索等を行って回答しても構いません。あなたの判断にお任せします。 | |
問1 | |
以下の計算問題を解いて下さい。 | |
1) 0+1+2+4+8+16+32+64+128 = | |
2) 2*2*2*2*2*2*2*2 = |