Skip to content

Instantly share code, notes, and snippets.

@ehmad11
ehmad11 / elk.md
Created August 22, 2021 11:38 — forked from kevinmarrec/elk.md
ELK Stack using Amazon Services : Amazon ES for Elasticsearch & Kibana, and Amazon EC2 for Logstash

This tutorial allows to setup an ELK Stack using Amazon ES (Elasticsearch Service) for Elasticsearch & Kibana, and an EC2 instance running Amazon Linux 2 AMI for Logstash.

For the following Steps, we'll work with the EU (Ireland) (a.k.a eu-west-1) region. Replace eu-west-1 by your region when needed.

We're also assuming you already own an Amazon Web Services Account and you are already logged in.

Configure Amazon ES

Go to https://eu-west-1.console.aws.amazon.com/es
Then click "Create a new domain"

@ehmad11
ehmad11 / extract-attachments.py
Created May 11, 2018 09:35 — forked from stefansundin/extract-attachments.py
Extract attachments from emails that Gmail doesn't allow you to download. This is dumb. Please use Python >= 3.4.
#!/usr/bin/env python3
# Get your files that Gmail block. Warning message:
# "Anti-virus warning - 1 attachment contains a virus or blocked file. Downloading this attachment is disabled."
# Based on: https://spapas.github.io/2014/10/23/retrieve-gmail-blocked-attachments/
# Instructions:
# Go to your emails, click the arrow button in the top right, "Show original", then "Download Original".
# Move the files to the same directory as this program, then run it.
import email