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"}'
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
重複排除 | |
/usr/bin/pgrep -f /usr/bin/emacs || echo "not duplicate emacs process" | |
http://qiita.com/rsooo/items/ef1d036bcc7282a66d7d | |
SCRIPT_DIR=$(cd $(dirname $(readlink -f $0 || echo $0));pwd -P) | |
cd $SCRIPT_DIR | |
#shell補完 |
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
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 |
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
linux 同一セグメント 複数ipの来たインターフェイスのIPから戻り設定 | |
https://engineering.silk.co/post/31923247961/multiple-ip-addresses-on-amazon-ec2 | |
https://qiita.com/fururun02/items/69d1ddac298b4ce48269 | |
``` | |
# tempraly | |
bash -c "echo '2 eth0_rt' >> /etc/iproute2/rt_tables" | |
ip rule add from 172.31.0.22 table eth0_rt | |
ip route add default via 172.31.0.1 dev eth0 table eth0_rt |
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
cat << EOT >~/.emacs.d/ElgetPackages | |
(el-get-bundle auto-complete) | |
(el-get-bundle quickrun) | |
(el-get-bundle ag) | |
(el-get-bundle color-theme) | |
(el-get-bundle flymake) | |
(el-get-bundle highlight-symbol) | |
(el-get-bundle helm) | |
(el-get-bundle helm-ag) |
git clone https://github.com/tfutils/tfenv.git ~/.tfenv
echo 'export PATH="$HOME/.tfenv/bin:$PATH"' >> ~/.bash_profile
tfenv install 0.12.0-rc1
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単体でのポートフォワードが可能 |
private channel
/invite @aws
NewerOlder