Skip to content

Instantly share code, notes, and snippets.

@mmailhos
mmailhos / gist:f22f03e12653a16648cdc94a68976dfa
Created Jan 19, 2020
Dockerfile and Deployment for helm2.16 context deadline exceeded
View gist:f22f03e12653a16648cdc94a68976dfa
FROM golang:1.13.4
WORKDIR /app
COPY app .
CMD ["./app"]
---
@mmailhos
mmailhos / .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") \
@mmailhos
mmailhos / AWS Architect Associate - Reminder.md
Last active May 1, 2020
AWS Architect Associate - Reminder
View AWS Architect Associate - Reminder.md

AWS Architect Associate - Reminder

A few notes for passing the AWS Architect Associate certification - March 2018

EC2

General purpose SSD have a maximum of 10.000 IOPS.

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

View data
var:
meth:
- name: "first"
annotations:
- summary = "first methode"
- name: "second"
annotations:
- summary = "second methode"
@mmailhos
mmailhos / SigningToken.go
Last active Jun 26, 2020
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.