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 -u | |
if [ $# -ne 9 ]; then | |
echo -e "Usage:\t${0} HOSTNAME PASSWORD VCPU MEMORY SWAP DISK IPADDRESS NETMASK GATEWAY" | |
exit 99 | |
fi | |
HOSTNAME=${1?need hostname} | |
PASSWORD=${2?need password} | |
VCPU=${3?need vcpu} |
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 -u | |
#BS=('4k' '16k' '1m') | |
#TYPE=('read' 'write' 'randread' 'randwrite') | |
#IODEPTH=(1 2 4 8 16 32 64) | |
BS=('4k') | |
TYPE=('read' 'write' 'randread' 'randwrite') | |
IODEPTH=(1 2 4 8 16 32 64) | |
OUTPUT='/tmp/fio.json' | |
BASE_CMD='fio -ioengine=libaio -direct=1 -invalidate=1 -filename=/tmp/fio.bin -size=10G -numjobs=1 -runtime=60 -group_reporting -name=fio --output-format=json' |
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 ruby | |
require 'gruff' | |
require 'json' | |
require 'yajl' | |
require 'pp' | |
giops = Gruff::Line.new | |
giops.title = "IOPS Result (bs=4k)" | |
giops.x_axis_label = 'IO depth' |
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 -u | |
if [ $# -ne 9 ]; then | |
echo -e "Usage:\t${0} HOSTNAME PASSWORD VCPU MEMORY SWAP DISK IPADDRESS NETMASK GATEWAY" | |
exit 99 | |
fi | |
HOSTNAME=${1?need hostname} | |
PASSWORD=${2?need password} | |
VCPU=${3?need vcpu} |
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 -u | |
if [ $# -ne 11 ]; then | |
echo -e "Usage:\t${0} HOSTNAME PASSWORD VCPU MEMORY SWAP DISK IPADDRESS NETMASK GATEWAY OS-TYPE[centos6,centos7] NIC[1,2]" | |
exit 99 | |
fi | |
HOSTNAME=${1?need hostname} | |
PASSWORD=${2?need password} | |
VCPU=${3?need vcpu} |
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
Hello World! |
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 ruby | |
# -*- coding: utf-8 -*- | |
require 'aws/s3' | |
include AWS::S3 | |
Access_key = '********' | |
Secret_key = '********' | |
DEFAULT_HOST.replace "s3-ap-northeast-1.amazonaws.com" | |
MyBucket = 'bucket_name' |
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
http { | |
# DNS resolver | |
resolver 127.0.0.1; | |
proxy_cache_path /var/cache/nginx/static_file_cache levels=1:2 keys_zone=cache_static_file:10m inactive=7d max_size=100m; | |
proxy_temp_path /var/cache/nginx/temp; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-Host $host; |
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
<source> | |
type forward | |
port 24224 | |
bind 0.0.0.0 | |
</source> | |
<match ping.**> | |
type copy | |
<store> |
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
[zabbix] | |
listen = /var/run/php-fpm/zabbix.socket | |
;listen.backlog = -1 | |
listen.allowed_clients = 127.0.0.1 | |
;listen.owner = nobody | |
;listen.group = nobody | |
;listen.mode = 0666 | |
user = nginx | |
group = nginx | |
pm = dynamic |
OlderNewer