aws logs filter-log-events --log-group-name /aws/lambda/XXX --start-time `date -d '2022-06-20 06:30' '+%s%3N'` --end-time `date -d '2022-06-20 07:00' '+%s%3N'` --profile=XXX >testlog.json`
jq -r '.events[].message' testlog.json >testlog.log
grep GET testlog.log | awk '{print $NF, $4, $7,$12}' | sort -n | tail -1000 | awk '{print $2, $1, $3, $4}' | sort | cut -b 2-
aws lambda invoke /dev/stdout --function-name=Lambda-dev --profile=prof --region=ap-northeast-1 --cli-binary-format raw-in-base64-out --payload '{"abc":"XXX"}'
command line tools for xcode
brew
前の入力ソースを選択で ALT + `
ドラッグを有効にする、ドラッグロックなし
windows風のキー操作
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
Direct Connect | |
0. 仮想プライベートゲートウェイ作成 | |
prd_directconnect | |
1. 接続 | |
orderingを承認する | |
2. 引き続き接続から仮想インターフェースを作成 | |
/30のネットマスク、BGPパスワードは自動作成される |
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
https://milestone-of-se.nesuke.com/sv-advanced/appliance-server/load-balancer/ | |
NLBは受けIPと戻りIPが違うアドレスとなる。 | |
AWSのAWS-RunPatchBaselineはデフォルトだと、全てのpatchではない(securityもののみ?) | |
SSM単体でのポートフォワードが可能 |
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
OSSを使用したExpressサーバの運用管理 | |
(Linux環境) | |
https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=2ahUKEwinyuH-t93oAhWaHXAKHaGoCysQFjAAegQIARAB&url=https%3A%2F%2Fwww.support.nec.co.jp%2FDownLoad.aspx%3Ffile%3DServerManagement_on_Linux_OSS_WhitePaper_2.0.pdf%26id%3D3140103778&usg=AOvVaw3irDp6au1t8ACeX6vjNeDN | |
ipmitool sel list | |
/var/crash/以下に kernel crash dumpが出ているかもしれない。 | |
ipmitool fru print |
private channel
/invite @aws
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
# デフォルトは大文字小文字の区別をしない | |
http://daybydaypg.com/2017/08/12/post-227/ | |
# delete後の不要領域回収 | |
https://aws.amazon.com/jp/premiumsupport/knowledge-center/rds-mysql-storage-optimization/ | |
# tablechecksum | |
pt-table-checksum h=192.168.10.9,u=percona,p='',P=3306 --no-check-binlog-format --no-check-replication-filter --databases ch,twilio | |
# slaveをmasterから発見する |
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
grep ' ms' postgresql.log | gawk '{print $(NF -1);}' | sort -n | |
grep '"GET index.php' access_log | gawk '{print $4 " " $NF/1000000;}' | |
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
http://innossh.hatenablog.com/entry/2017/08/22/223300 | |
https://qiita.com/weakboson/items/cc3945dad1b0bff7edc7 | |
https://shun0750.tumblr.com/post/99232215318/nginx-lua%E3%81%A7%E7%9B%AE%E6%8C%87%E3%81%99%E3%83%AA%E3%83%83%E3%83%81%E3%81%A7%E9%AB%98%E9%80%9F%E3%81%AAweb%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC |
git clone https://github.com/tfutils/tfenv.git ~/.tfenv
echo 'export PATH="$HOME/.tfenv/bin:$PATH"' >> ~/.bash_profile
tfenv install 0.12.0-rc1
NewerOlder