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
import boto3 | |
import sys | |
# Please fill in the following variables | |
ROLE_ARN = "" | |
ROLE_SESSION_NAME = "" | |
EXTERNAL_ID = "" | |
DEFAULT_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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import boto3 | |
import click | |
import os | |
class DownLoadS3Objects(object): | |
""" copy s3 object """ |
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
from flask import Flask | |
app = Flask(__name__) | |
@app.route("/") | |
def hello(): | |
return "Hello World!\n" | |
if __name__ == "__main__": | |
app.run() |
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
# cat /etc/centos-release | |
CentOS Linux release 7.2.1511 (Core) |
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
$ curl -fsSL https://get.docker.com/ | sh | |
$ systemctl start docker.service |
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
$ curl -fsSL https://get.docker.com/ | sh | |
$ systemctl start docker.service |
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 | |
sudo yum update aws-cli -y | |
AWS="/usr/bin/aws --region ap-northeast-1" | |
ids=$(${AWS} ec2 describe-instances --filters \\ | |
"Name=tag:dont_stop,Values=False" \\ | |
"Name=instance-state-code,Values=16" \\ | |
--query 'Reservations[].Instances[].InstanceId' \\ |
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
/* | |
aws settings | |
*/ | |
provider "aws" { | |
access_key = "************" | |
secret_key = "********************" | |
region = "ap-northeast-1" | |
} |
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
<system.web> | |
<httpRuntime enableVersionHeader="false" /> | |
</system.web> |
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
PS C:\> $PSVersionTable | |
Name Value | |
---- ----- | |
PSVersion 4.0 | |
WSManStackVersion 3.0 | |
SerializationVersion 1.1.0.1 | |
CLRVersion 4.0.30319.34209 | |
BuildVersion 6.3.9600.17400 | |
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0} |
NewerOlder