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
# -*- coding: utf-8 -*- | |
# | |
# ELBにSSL証明書をセットするスクリプトです。 | |
# 要 AWS SDK for Ruby V2 | |
require 'aws-sdk-core' | |
require 'yaml' | |
require 'pp' | |
config = YAML.load(File.read("config.yml")) |
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
# -*- coding: utf-8 -*- | |
# | |
# ELBを作成するスクリプトです。ついでにSSL証明書もセットしますが、EC2をぶら下げるまではしません。 | |
# 要 AWS SDK for Ruby V2 | |
require 'aws-sdk-core' | |
require 'yaml' | |
require 'pp' | |
config = YAML.load(File.read("config.yml")) |
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
# -*- coding: utf-8 -*- | |
# | |
require 'aws-sdk-core' | |
require 'yaml' | |
require 'pp' | |
config=YAML.load(File.read("config.yml")) | |
Aws.config[:credentials] = Aws::Credentials.new(config['access_key_id'],config['secret_access_key']) | |
ec2=Aws::EC2::Client.new(region:config['region']) |
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 | |
# http://askubuntu.com/questions/1705/how-can-i-create-a-select-menu-in-a-shell-scriptより参照 | |
#メインメニュー | |
show_menu(){ | |
NORMAL=`echo "\033[m"` | |
MENU=`echo "\033[36m"` #Blue | |
NUMBER=`echo "\033[33m"` #yellow | |
FGRED=`echo "\033[41m"` | |
RED_TEXT=`echo "\033[31m"` |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Resources": { | |
"rdsauroratest": { | |
"Type": "AWS::RDS::DBInstance", | |
"Properties": { | |
"AllocatedStorage": "0", | |
"AllowMajorVersionUpgrade": "false", | |
"AutoMinorVersionUpgrade": "true", | |
"DBInstanceClass": "db.r3.large", |
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
# -*- coding: utf-8 -*- | |
# | |
# ElasticCacheにmemcacheクラスタを構築するスクリプトです。 | |
# 要 AWS SDK for Ruby V2 | |
require 'aws-sdk-core' | |
require 'yaml' | |
require 'pp' | |
config = YAML.load(File.read('config.yml')) |
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
# -*- coding: utf-8 -*- | |
# | |
# Rubyで重い処理を並列動作させるサンプルスクリプトです。 | |
require 'parallel' | |
require 'pp' | |
# 開始時刻と終了時刻を記録するクラス | |
class RecordUtil |
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
#PHP Unitテスト用(php5.6)Dockerファイルサンプル | |
FROM centos:centos6 | |
MAINTAINER Akira345 | |
# Set TimeZone | |
RUN echo 'ZONE="Asia/Tokyo"' > /etc/sysconfig/clock | |
# Yum Repo Setting | |
RUN sed -i -e 's/^#baseurl/baseurl/' /etc/yum.repos.d/CentOS-Base.repo |
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
<?php | |
require_once "aws.phar"; | |
//設定 | |
$access_key = "<ACCESS_KEY>"; | |
$secret_key = "<SECRET_KEY>"; | |
$distribution_id = "<DISTRIBUTION_ID>"; | |
$paths = array("/img/a.png",); |
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
# -*- coding: utf-8 -*- | |
# | |
# | |
# http://qiita.com/takashibagura/items/8b49b8b02bb797210c5b | |
# 上記サイトを参考にAWS SDK for Ruby v2で作成 | |
require 'aws-sdk-core' | |
require 'yaml' | |
require 'pp' |