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
$ pip install xlrd | |
# 読み込み用 | |
$ pip install xlwt | |
$ pip install openpyxl | |
# 書き込み用 |
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
update wp_posts set guid=REPLACE(guid, 'http://<旧IPアドレス>/', 'http://<新IPアドレス>/') where post_type='page'; | |
update wp_options set option_value=REPLACE(option_value, 'http://<旧IPアドレス>', 'http://<新IPアドレス>') where option_value like ('%<旧IPアドレス>%'); |
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: 0.2 | |
phases: | |
install: | |
commands: | |
- apt-get update -y | |
- npm install -g serverless | |
pre_build: | |
commands: | |
- sed -i -e "s|COGNITO_IDP_ARN|${COGNITO_IDP_ARN}|g" serverless.yml |
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
export const environment = { | |
production: false, | |
amplify: { | |
Auth: { | |
region: 'REGION', | |
userPoolId: 'USER_POOL_ID', | |
userPoolWebClientId: 'USER_POOL_WEB_CLIENT_ID', | |
identityPoolId: 'IDENTITY_POOL_ID' | |
} | |
}, |
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
$ pip install -t libs requests | |
$ pip install -t libs beautifulsoup4 |
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 json | |
from datetime import datetime | |
import os | |
import boto3 | |
cognito_client = boto3.client('cognito-idp') | |
def list_users(event, context): | |
if 'UserPoolId' not in event: |
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
$ dig ns test-kojiisd.tk | |
: | |
: | |
;; ANSWER SECTION: | |
test-kojiisd.tk. 60 IN NS ns-cloud-a4.googledomains.com. | |
test-kojiisd.tk. 60 IN NS ns-cloud-a1.googledomains.com. | |
test-kojiisd.tk. 60 IN NS ns-cloud-a2.googledomains.com. | |
test-kojiisd.tk. 60 IN NS ns-cloud-a3.googledomains.com. |
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 datetime | |
import locale | |
def lambda_handler(event, context): | |
intent = event['request']['intent'] | |
date_str = intent['slots']['date']['value'] | |
locale.setlocale(locale.LC_TIME, 'ja_JP.UTF-8') | |
date = datetime.datetime.strptime(date_str, '%Y-%m-%d') |
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
pi@raspberrypi:~ $ cat /etc/os-release | |
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" | |
NAME="Raspbian GNU/Linux" | |
VERSION_ID="9" | |
VERSION="9 (stretch)" | |
ID=raspbian | |
ID_LIKE=debian | |
HOME_URL="http://www.raspbian.org/" | |
SUPPORT_URL="http://www.raspbian.org/RaspbianForums" | |
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" |
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
<tr> | |
<td><label>Source Language: </label></td> | |
<td> | |
<select name="srcLang"> | |
<option value="en" selected>English</option> | |
<option value="zh">Chinese (Simplified)</option> | |
<option value="fr">French</option> | |
<option value="de">German</option> | |
<option value="pt">Portuguese</option> | |
<option value="es">Spanish</option> |
NewerOlder