This file contains hidden or 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 pytz import timezone | |
from dateutil import parser | |
import datetime | |
import json | |
# HTMLファイルの作成. | |
f = open('notion_update_histories.html', 'w', encoding='UTF-8') | |
f.write('<html><title>Notion Update Histories.</title><body>\n') | |
f.write('<h2>Notion Update Histories.</h2>\n') | |
f.write('<p>Last Updated: ' + str(datetime.datetime.now()) + '</p>') |
This file contains hidden or 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 | |
NOTION_API_TOKEN='secret_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' | |
####################################################### | |
## ワークスペース直下のページ(最上位階層ページ). | |
####################################################### | |
curl -X POST 'https://api.notion.com/v1/search' \ | |
-H "Notion-Version: 2021-05-13" \ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
def processFile(InputFile): | |
""" | |
入力ファイルの内容を解析&目次部分の出力 | |
""" | |
# それぞれの見出しを目次情報として活用するか否か. | |
useH1tag = False | |
useH2tag = True | |
useH3tag = True | |
useH4tag = True |
This file contains hidden or 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
[ | |
{ "ParameterKey" : "ProjectDescription", "ParameterValue" : "Blog Verification for AWS Glue Project." }, | |
{ "ParameterKey" : "PublicSubnet1Description", "ParameterValue" : "Public Subnet1 of Blog Verification for AWS Glue Project." }, | |
{ "ParameterKey" : "PublicSubnet2Description", "ParameterValue" : "Public Subnet2 of Blog Verification for AWS Glue Project." }, | |
{ "ParameterKey" : "PublicRouteTableName", "ParameterValue" : "Public Route Table of Blog Verification for AWS Glue Project." }, | |
{ "ParameterKey" : "CIDRVpc", "ParameterValue" : "10.0.0.0/16" }, | |
{ "ParameterKey" : "CIDRPublicSubnet1", "ParameterValue" : "10.0.0.0/24" }, | |
{ "ParameterKey" : "CIDRPublicSubnet2", "ParameterValue" : "10.0.1.0/24" } | |
] |
This file contains hidden or 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' | |
Parameters: | |
ProjectDescription: | |
Description: Name of VPC Description. | |
Type: String | |
Default: xxxxxxx. | |
PublicSubnet1Description: | |
Description: Name of Public Subnet1 Description. | |
Type: String |
This file contains hidden or 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
######################################################################### | |
## OS環境設定Powershellスクリプト | |
## 第1引数:コンピューター名 | |
## 第2引数:AWSデフォルトリージョン | |
## | |
## ※実行前に以下コマンドを実行してスクリプトを実行出来るようにしておく事 | |
## Set-ExecutionPolicy RemoteSigned | |
######################################################################### | |
Write-Host "** ComputerName:" $args[0] |
This file contains hidden or 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 | |
echo "" | |
echo "######################################################" | |
echo "EC2(Windows2012日本語版)インスタンス起動スクリプト." | |
echo "######################################################" | |
## --------------------------------------------------------------------------- | |
## 実行例 | |
## $ ./run-windows-ec2-instance.sh \ | |
## -i cs-blog-role \ |