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": "*" |
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 |
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" | |
], |
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 |
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),] |
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 |
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 | |
# |
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 |
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