Skip to content

Instantly share code, notes, and snippets.

🐳
Shipping

Valentin Ouvrard valentin2105

🐳
Shipping
Block or report user

Report or block valentin2105

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
View gist:d6ad6510b1b744cd93b160e8daaaaf7f
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
@valentin2105
valentin2105 / volume_provision.sh
Created Nov 3, 2017
Kubernetes Auto GlusterFS PV creation
View volume_provision.sh
#!/bin/bash
glusterName=glusterfs-cluster
glusterEP=10.240.0.10
glusterNode01Path=gluster01:/storage-pool
glusterNode02Path=gluster02:/storage-pool
while true; do
check=$(kubectl get pvc --all-namespaces --no-headers |grep Pending | head -1)
View http-tls.go
// main.go
package main
import (
"crypto/tls"
"log"
"net/http"
)
@valentin2105
valentin2105 / ferm-docker.conf
Created May 5, 2017
Ferm for Docker (IPv4 only)
View ferm-docker.conf
# -*- shell-script -*-
#
# Configuration file for ferm(1).
#
# Chain policies
# We define our Docker IPv4 ranges
@def $DOCKER_RANGE = (172.16.0.0/12);
# We drop INPUT/FORWARD by default and ACCEPT output
@valentin2105
valentin2105 / iterm2-solarized.md
Created Dec 25, 2016 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font (OS X / macOS)
View letsencrypt-auto
#!/bin/sh
#
# Download and run the latest release version of the Certbot client.
#
# NOTE: THIS SCRIPT IS AUTO-GENERATED AND SELF-UPDATING
#
# IF YOU WANT TO EDIT IT LOCALLY, *ALWAYS* RUN YOUR COPY WITH THE
# "--no-self-upgrade" FLAG
#
# IF YOU WANT TO SEND PULL REQUESTS, THE REAL SOURCE FOR THIS FILE IS
@valentin2105
valentin2105 / ha-wordpress.service
Last active Nov 4, 2017
High-Available Wordpress PoC on Docker Swarm 1.12.x with MariaDB Galera cluster.
View ha-wordpress.service
#! /bin/bash
wordpressPath=/srv/wp01
wordpressName=wordpress01
wordpressPwd=pAssw0rd
wordpressUrl=wordpress01.example.com
##################################
mkdir -p "$wordpressPath"/db
@valentin2105
valentin2105 / wordpress-docker.service
Created Sep 23, 2016
Docker Swarm Wordpress service
View wordpress-docker.service
docker service create --name wordpress-db01 \
--replicas 1 \
-p 3001:3306/tcp \
-e MYSQL_ROOT_PASSWORD=pAssw0rd \
-e MYSQL_DATABASE=wordpress \
--mount type=bind,src=/srv/swarm/wordpress01/db,dst=/var/lib/mysql \
mysql:latest
docker service create --name wordpress01 \
--replicas 1 \
@valentin2105
valentin2105 / nginx.conf
Created Sep 11, 2016 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
View docker-letsencrypt
sudo docker run -it –rm -p 443:443 -p 80:80 –name letsencrypt \
-v „/mnt/letsencrypt:/etc/letsencrypt“ \
-v „/mnt/ssl:/var/lib/letsencrypt“ \
quay.io/letsencrypt/letsencrypt:latest certonly –rsa-key-size 4096 -d meinedomain.de
You can’t perform that action at this time.