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
| status key command | |
| DirectInput Ctrl \ IMEOn | |
| Composition Backspace Backspace | |
| Composition Ctrl Backspace Backspace | |
| Composition Ctrl h Backspace | |
| Composition Shift Backspace Backspace | |
| Composition Ctrl z Cancel | |
| Composition ESC Cancel | |
| Composition Shift ESC Cancel | |
| Conversion Backspace Cancel |
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 | |
| nextToken= | |
| while [ "$nextToken" != "null" ]; do | |
| if [ -z "$nextToken" ]; then | |
| exArgs= | |
| else | |
| exArgs="--next-token $nextToken" | |
| fi | |
| res=`aws ssm describe-parameters --max-results 50 $exArgs` |
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
| # $HOME/.aws_util | |
| # | |
| # source this file in .bashrc or .zshrc | |
| lsec2s () { | |
| aws ec2 describe-instances --filter "Name=instance-state-name,Values=running" --query 'Reservations[].Instances[].{ id: InstanceId, name: Tags[?Key==`Name`].[Value][0][0], role: Tags[?Key==`Role`].[Value][0][0], ip: PrivateIpAddress }' | |
| } | |
| lsname () { | |
| lsec2s | jq "[.[] | select(.name == \"$1\") | .ip]" | jq -r ".[]" |
OlderNewer