Skip to content

Instantly share code, notes, and snippets.

View ohsawa0515's full-sized avatar

Shuichi Ohsawa ohsawa0515

View GitHub Profile
@mirakui
mirakui / Gemfile
Created July 19, 2010 09:44
AWS S3 read/write Benchmark
source :gemcutter
gem 'pit'
gem 'sauberia-aws-s3'
@mikeda
mikeda / nagios_alert.sh
Created May 27, 2013 06:10
ホストを指定してNagiosのアラートを停止するスクリプト
#!/bin/bash
### 使い方
### アラート停止:nagios_alert.sh stop web01 db01
### アラート再開:nagios_alert.sh start web01 db01
command_file="/var/spool/nagios/cmd/nagios.cmd"
if [ $# -lt 2 ];then
echo "usage: $0 <start|stop> hosts1 host2 ..."
@jshiell
jshiell / icinga-on-centos.sh
Last active February 27, 2016 16:10
Icinga on CentOS 6.4 via RPM
# These are very quick & dirty notes on getting Icinga installed on Centos 6.5 via RPMs,
# as most documentation seems to be based around source installation. It's mostly recovered from
# my history as I worked it out, so no guarantees are offered.
# Make EPEL available
sudo rpm -Uvh http://mirror.bytemark.co.uk/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
# Install HTTPd
sudo yum install httpd
sudo service https start
@hokkai7go
hokkai7go / dynamodb_table_size_item_count.sh
Created January 25, 2017 11:36
DynamoDBのストレージ容量(バイト単位)と項目数を出したときのスクリプト
#!/bin/bash
table_list=`AWS_PROFILE=hoge aws dynamodb list-tables | jq -r '.TableNames[]'`
for table in $table_list
do
table_size=`AWS_PROFILE=hoge aws dynamodb describe-table --table-name $table| jq -r '.[].TableSizeBytes'`
if expr $table_size \< 1024 > /dev/null
then
table_size="${table_size} Bytes"
@voluntas
voluntas / loadtest.rst
Last active July 6, 2024 00:34
負荷試験コトハジメ