Skip to content

Instantly share code, notes, and snippets.

View etiennemunnich's full-sized avatar
💭
¯\_(ツ)_/¯

Etienne Munnich etiennemunnich

💭
¯\_(ツ)_/¯
View GitHub Profile
@etiennemunnich
etiennemunnich / alb.tf
Created November 4, 2024 15:31 — forked from kfigiela/alb.tf
AWS ALB OIDC Google authentication
resource "aws_lb_listener" "https" {
load_balancer_arn = aws_lb.frontend.arn
port = "443"
protocol = "HTTPS"
ssl_policy = "ELBSecurityPolicy-2016-08"
certificate_arn = "TODO-CERT-ARN"
default_action {
type = "authenticate-oidc"
authenticate_oidc {
@etiennemunnich
etiennemunnich / alb.tf
Created November 4, 2024 15:31 — forked from kfigiela/alb.tf
AWS ALB OIDC Google authentication
resource "aws_lb_listener" "https" {
load_balancer_arn = aws_lb.frontend.arn
port = "443"
protocol = "HTTPS"
ssl_policy = "ELBSecurityPolicy-2016-08"
certificate_arn = "TODO-CERT-ARN"
default_action {
type = "authenticate-oidc"
authenticate_oidc {
@etiennemunnich
etiennemunnich / learning-rust.txt
Created October 21, 2019 06:48
Learning Rust
These are some helpful resources I've found, please feel free to let me know if you have anything to share!
Rust resources
https://github.com/rust-lang/rustlings
https://www.rust-lang.org/
https://github.com/rust-lang
https://cheats.rs
https://crates.io
https://docs.rs
https://doc.rust-lang.org/book/
@etiennemunnich
etiennemunnich / encrypt_openssl.md
Created May 13, 2019 04:37 — forked from dreikanter/encrypt_openssl.md
File encryption using OpenSSL

Symmetic encryption

For symmetic encryption, you can use the following:

To encrypt:

openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt

To decrypt:

@etiennemunnich
etiennemunnich / gist:1e06fa2df56fbf7ece3d98b7fc148b7e
Created May 9, 2019 04:12 — forked from jmn/gist:4de857259b1dfc54ab80b5682af935ad
Building h2load (of nghttp2) on Ubuntu 16.04
#! /bin/bash
# https://nghttp2.org/documentation/h2load-howto.html
sudo apt-get update
sudo apt-get install g++ make binutils autoconf automake autotools-dev libtool pkg-config \
zlib1g-dev libcunit1-dev libssl-dev libxml2-dev libev-dev libevent-dev libjansson-dev \
libc-ares-dev libjemalloc-dev cython python3-dev python-setuptools libjemalloc-dev \
libspdylay-dev
git clone https://github.com/nghttp2/nghttp2.git && cd nghttp2
autoreconf -i && automake && autoconf
@etiennemunnich
etiennemunnich / resolver.py
Last active April 25, 2019 00:11 — forked from DamnedFacts/resolver.py
Forward and Reverse DNS lookups with Python
import sys
import socket
"""
Resolve the DNS/IP address of a given domain
data returned is in the format:
(name, aliaslist, addresslist)
@filename resolveDNS.py
@version 1.01 (python ver 2.7.3)
@author LoanWolffe
@etiennemunnich
etiennemunnich / GitHub-Forking.md
Created April 3, 2019 04:36 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@etiennemunnich
etiennemunnich / gist:8036c5be0a667e538d62674fee09cc8b
Last active August 28, 2018 07:17
Query S3 Access Logs using Athena
CREATE DATABASE MyAccessLogsDB;
CREATE EXTERNAL TABLE IF NOT EXISTS MyAccessLogsDB.Accesslogs(
BucketOwner string,
Bucket string,
RequestDateTime string,
RemoteIP string,
Requester string,
RequestID string,
Operation string,
Key string,
@etiennemunnich
etiennemunnich / nginx-tuning.md
Created July 24, 2018 05:24 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@etiennemunnich
etiennemunnich / awscli.md
Created July 11, 2018 09:42 — forked from overdrive3000/awscli.md
AWS CLI tips and tricks

Get the default VPC Id

aws ec2 describe-vpcs --filters "Name=isDefault,Values=true" --output text --query 'Vpcs[*].{Vpc:VpcId}'

Get all the cloudformation stack names

aws cloudformation describe-stacks --region us-east-1 --output text --query 'Stacks[*].{Stack:StackName}'