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 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 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 login.vue
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
<v-container fuild fill-height> | |
<v-layout justify-center> | |
<v-flex xs12 sm8 md4> | |
<!-- login view --> | |
<v-card> | |
<v-toolbar dark flat> | |
<v-toolbar-title>Login Form</v-toolbar-title> | |
</v-toolbar> | |
<v-card-text> | |
<!-- login form --> |
View keybindings.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
// VSCodeで、エディタとターミナルを往復できるショートカットの定義 | |
// Place your key bindings in this file to override the defaultsauto[] | |
[ | |
{ | |
"key": "ctrl+`", | |
"command": "workbench.action.focusActiveEditorGroup", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "ctrl+`", |
OlderNewer