Skip to content

Instantly share code, notes, and snippets.

@mmailhos
mmailhos / gist:f22f03e12653a16648cdc94a68976dfa
Created January 19, 2020 08:59
Dockerfile and Deployment for helm2.16 context deadline exceeded
FROM golang:1.13.4
WORKDIR /app
COPY app .
CMD ["./app"]
---
@mmailhos
mmailhos / .env
Created April 11, 2019 12:19 — forked from supermarin/.env
Colored `man` pages on OSX
# 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 December 3, 2021 21:50
AWS Architect Associate - Reminder

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.

var:
meth:
- name: "first"
annotations:
- summary = "first methode"
- name: "second"
annotations:
- summary = "second methode"
@mmailhos
mmailhos / SigningToken.go
Last active June 26, 2020 17:20
Exemple of signign an AWS Access Token - Unfixed
package main
import (
"crypto/rsa"
"encoding/base64"
"encoding/binary"
"encoding/json"
"fmt"
"github.com/dgrijalva/jwt-go"
"io/ioutil"