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
2.1.0 |
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
sudo pip install awscli | |
aws configure | |
aws ses send-email \ | |
--from "[email protected]" \ | |
--destination "[email protected]" \ | |
--message "Subject={Data=from ses,Charset=utf8},Body={Text={Data=ses says hi,Charset=utf8},Html={Data=,Charset=utf8}}" |
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
# Get IAM Role name from Instance Profile Id | |
curl http://169.254.169.254/latest/meta-data/iam/info | |
# Get credentials | |
curl http://169.254.169.254/latest/meta-data/iam/security-credentials/<role-name> | |
# More info | |
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html | |
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
(* | |
Script to Mark Item as Read and Move to folder "Archive" | |
For Microsoft Outlook 15 | |
*) | |
tell application "Microsoft Outlook" | |
activate | |
set msgSet to current messages | |
if msgSet = {} then | |
error "No Messages selected. Select at least one message." |
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 | |
echo "AMI ID: $(curl http://169.254.169.254/latest/meta-data/ami-id)\n" | |
echo "AMI LAUNCH INDEX: $(curl http://169.254.169.254/latest/meta-data/ami-launch-index)\n" | |
echo "AMI MANIFEST PATH: $(curl http://169.254.169.254/latest/meta-data/ami-manifest-path)\n" | |
echo "BLOCK DEVICE MAPPING: $(curl http://169.254.169.254/latest/meta-data/block-device-mapping/)\n" | |
echo "HOSTNAME: $(curl http://169.254.169.254/latest/meta-data/hostname)\n" | |
echo "INSTANCE ACTION: $(curl http://169.254.169.254/latest/meta-data/instance-action)\n" | |
echo "INSTANCE ID: $(curl http://169.254.169.254/latest/meta-data/instance-id)\n" | |
echo "INSTANCE TYPE: $(curl http://169.254.169.254/latest/meta-data/instance-type)\n" | |
echo "KERNEL ID: $(curl http://169.254.169.254/latest/meta-data/kernel-id)\n" |