View autoscaling_update-auto-scaling-group.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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "Stmt1444892806511", | |
"Action": [ | |
"autoscaling:UpdateAutoScalingGroup" | |
], | |
"Effect": "Allow", | |
"Resource": "*" |
View lambda_function.py
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 | |
autoscaling = boto3.client("autoscaling") | |
#org_param = dict(MinSize=2, DesiredCapacity=2) # 復元先のパラメータ | |
stop_param = dict(MinSize=0, DesiredCapacity=0) # 擬似Stopする時のパラメータ | |
def lambda_handler(event, context): | |
""" | |
cron triggered function |
View s3-sample-policy-001.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
{ | |
"Version": "2012-10-17", | |
"Id": "Policy1234567890123", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Principal": "*", | |
"Action": [ | |
"s3:GetObject" | |
], |
View rforcecom_getReportFields.r
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
rforcecom.getObjectDescription(sf, 'Report')$name |
View rforcecom_extract-object.r
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
# 特定の名前を持つオブジェクトの情報を抽出する。この場合は「商談」と「商品」 | |
# objlist ... rforcecom.getObjectList() の返り値 | |
objlist[mapply(function(elm){ is.element(elm, c("商談", "商品")) }, objlist$label),] |
View start_first_vuetify_project.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
# | |
# Date: 2018/10/20 | |
# Author: @hassaku_63 | |
# | |
# | |
# Install Vue CLI 3 | |
# | |
npm install -g @vue/cli | |
# or yarn global add @vue/cli |
View extract_backlog_api_list.py
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
# | |
# Date: 2018-12-08 | |
# Author: hassaku63 | |
# | |
# These codes are licensed under CC0. | |
# http://creativecommons.org/publicdomain/zero/1.0/deed.ja | |
# | |
# Prerequisite: | |
# - Selenium webdriver | |
# |
View Dockerfile_isucon6-web-python
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 python:3.5.2 | |
RUN mkdir -p /usr/src/app | |
ADD isucon6-webapp/python/requirements.txt /usr/src/app/ | |
ADD isucon6-webapp /usr/src/app/ | |
RUN pip install -r /usr/src/app/requirements.txt | |
RUN pip install gunicorn | |
WORKDIR /usr/src/app/python/ | |
EXPOSE 5000 |
View Dockerfile_isucon7-web-python
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 python:3.5.2 | |
RUN mkdir -p /usr/src/app | |
ADD isucon6-webapp/python/requirements.txt /usr/src/app/ | |
ADD isucon6-webapp /usr/src/app/ | |
RUN pip install -r /usr/src/app/requirements.txt | |
RUN pip install gunicorn | |
WORKDIR /usr/src/app/python/ | |
EXPOSE 5000 |
OlderNewer