start new:
tmux
start new with session name:
tmux new -s myname
import boto3 | |
from botocore.exceptions import ClientError | |
from email.mime.text import MIMEText | |
from email.mime.application import MIMEApplication | |
from email.mime.multipart import MIMEMultipart | |
# Replace sender@example.com with your "From" address. | |
# This address must be verified with Amazon SES. | |
SENDER = "Sender Name <no-reply@example.com>" |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
# How to encrypt/decrypt your text/blob secret with AWS KMS with AWS cli | |
KEY_ID=alias/my-key | |
SECRET_BLOB_PATH=fileb://my-secret-blob | |
SECRET_TEXT="my secret text" | |
ENCRYPTED_SECRET_AS_BLOB=encrypted_secret_blob | |
DECRYPTED_SECRET_AS_BLOB=decrypted_secret_blob # Result of decrypt-blob target | |
encrypt-text: |
# Search all | |
GET _search | |
{ | |
"query": { | |
"match_all": {} | |
} | |
} | |
# Cluster | |
GET _cluster/health |
#!/bin/bash | |
DOCKER_LOGIN=`aws ecr get-login --region us-west-2` | |
${DOCKER_LOGIN} |
#!/bin/bash | |
today=`date "+%Y%m%d"` | |
echo $today | |
# Modify the config values here | |
BUCKET= | |
ES_DOMAIN= | |
ES_INDEX= | |
ES_DUMP_PREFIX= | |
export AWS_ACCESS_KEY_ID= |
Install and configure Apache Kafka on Ubuntu 16.04 | |
# preparation | |
sudo apt-get update -y | |
1. Install Java (JDK8):: | |
Add the repository | |
$ sudo add-apt-repository -y ppa:webupd8team/java |