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
#!/bin/bash | |
# based on code byLeon Mergen | |
# see: https://leonmergen.com/automatically-mounting-instance-store-on-an-aws-ami-150da3ffd041 | |
LVDISPLAY=$(which lvdisplay) | |
PVCREATE=$(which pvcreate) | |
VGCREATE=$(which vgcreate) | |
LVCREATE=$(which lvcreate) | |
MOUNT=$(which mount) | |
MKDIR=$(which mkdir) |
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
#!/bin/bash | |
LAUNCHTEMPLATEID=lt-04f7a88addea07001 | |
INTANCETYPE=p3.2xlarge | |
REGION=$(curl http://169.254.169.254/latest/meta-data/placement/availability-zone | cut -c1-9) | |
AWSCMD="aws --region $REGION --output text | |
IMAGEID=$($AWSCMD ssm get-parameters --names /aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2 | cut -f 6) | |
TAGVALUEOWNER=$($AWSCMD iam get-user| awk '{printf $7}') | |
SNAPSHITID=$($AWSCMD ec2 describe-images --image-id $IMAGEID | grep snap- | awk -F" " '{print $4}') |
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
#!/bin/bash | |
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000029}]}' |