Skip to content

Instantly share code, notes, and snippets.

🏡
Working from $HOME

Mathieu MathieuMailhos

🏡
Working from $HOME
  • Sydney
Block or report user

Report or block MathieuMailhos

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@MathieuMailhos
MathieuMailhos / .env
Created Apr 11, 2019 — forked from supermarin/.env
Colored `man` pages on OSX
View .env
# ZSH / BASH users
# Add this to your .env, .bashrc, .zshrc, or whatever file you're using for environment
man() {
env \
LESS_TERMCAP_mb=$(printf "\e[1;31m") \
LESS_TERMCAP_md=$(printf "\e[1;31m") \
LESS_TERMCAP_me=$(printf "\e[0m") \
LESS_TERMCAP_se=$(printf "\e[0m") \
LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
@MathieuMailhos
MathieuMailhos / README.md
Last active Jun 15, 2019
AWS Architect Associate - Reminder
View README.md

AWS Architect Associate - Reminder

EC2

General purpose SSD have a maximum of 10.000 IOPS.

It is possible to detach non-root volume from running EC2 instance.

An EC2 placement group is used to determin how far are instances placed between each other. In cluster mode, they will be placed to reduce the latency inside a single AZ. In spread mode, they will be placed on different underlying hardware (and potentially in different AZ).

View data
var:
meth:
- name: "first"
annotations:
- summary = "first methode"
- name: "second"
annotations:
- summary = "second methode"
@MathieuMailhos
MathieuMailhos / SigningToken.go
Last active Apr 25, 2019
Exemple of signign an AWS Access Token - Unfixed
View SigningToken.go
package main
import (
"crypto/rsa"
"encoding/base64"
"encoding/binary"
"encoding/json"
"fmt"
"github.com/dgrijalva/jwt-go"
"io/ioutil"
You can’t perform that action at this time.