Skip to content

Instantly share code, notes, and snippets.

View thylong's full-sized avatar
🇺🇦

Théotime Lévêque thylong

🇺🇦
View GitHub Profile
@thylong
thylong / Dockerfile
Created March 26, 2020 17:39 — forked from hermanbanken/Dockerfile
Compiling NGINX module as dynamic module for use in docker
FROM nginx:alpine AS builder
# nginx:alpine contains NGINX_VERSION environment variable, like so:
# ENV NGINX_VERSION 1.15.0
# Our NCHAN version
ENV NCHAN_VERSION 1.1.15
# Download sources
RUN wget "http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz" -O nginx.tar.gz && \
@thylong
thylong / aes_encryption.go
Created February 23, 2017 22:59 — forked from stupidbodo/aes_encryption.go
AES Encryption Example in Golang
// Playbook - http://play.golang.org/p/3wFl4lacjX
package main
import (
"bytes"
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"encoding/base64"