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"

Keybase proof

I hereby claim:

  • I am thylong on github.
  • I am thylong (https://keybase.io/thylong) on keybase.
  • I have a public key whose fingerprint is D576 5918 0C00 4882 33D0 4F37 08A9 AFCF 3F5D 1EF7

To claim this, I am signing this object:

@thylong
thylong / gist:73cf677579447a8f10b5
Created August 18, 2014 18:52
Publicly Verify Yourself on GitHub
Verifying that +thyl is my Bitcoin username. You can send me #bitcoin here: https://onename.io/thyl
@thylong
thylong / AdminSysUbuntu
Last active December 18, 2015 12:18
Admin Sys - Linux Ubuntu - LAMP, Usefull commands.
// Lister les paquets installés sur un serveur
dpkg --get-selections
// apache2.conf
// Enlever les bandeaux donnant des informations sur le serveur en cas de 404
ServerSignature Off
ServerTokens Prod
a2enmod : permet d’activer un mod pour apache
a2dismod : permet de désactiver un mod