Skip to content

Instantly share code, notes, and snippets.

View sitle's full-sized avatar

Léonard TAVAE sitle

View GitHub Profile
@sitle
sitle / graylog2.md
Created March 11, 2014 21:42 — forked from hggh/graylog2.md

OS X Preferences


#Disable window animations
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false

#Enable repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
@sitle
sitle / README.md
Last active December 20, 2015 18:58

Serveur GIT "privé"

J'ai cherché longtemps sur le web une manière simple et élégante d'installer un serveur git "privé". Malheureusement, soit les gens ont la fâcheuse tendance à rajouter énormément de chose spécifique à leurs environnement, soit la documentation n'est pas très compréhensible pour le commun des mortels... bref, comment installe t'on un serveur git "privé" ?

Installation des pré-requis

### On installe d'abord "git".

sudo apt-get install git-core
@sitle
sitle / Install_python_virtualenv.md
Last active December 24, 2015 18:09
Installation virtualenv python

Installation des pré-requis :

sudo apt-get install python-setuptools
sudo easy_install pip
sudo pip install virtualenv
sudo pip install virtualenvwrapper

Dans le fichier ~/.bashrc, ajoutez à la fin du fichier :

@sitle
sitle / ldap.yml
Created July 1, 2016 18:01
Authenticates a Ruby on Rails User model via LDAP and saves their LDAP photo if they have one
# config/ldap.yml
# LDAP server configuration settings
# Host is a Windows Domain Controller
development:
host: examplehost
port: 389
default_domain: EXAMPLEDOMAIN
base: examplebase # OU=US-Tampa Bay,OU=North America,OU=Accounts,DC=ourdomain,DC=org

Keybase proof

I hereby claim:

  • I am sitle on github.
  • I am sitle (https://keybase.io/sitle) on keybase.
  • I have a public key whose fingerprint is 8E21 9A8B 30C5 2A82 93C9 FBE6 554C DF0D 5FFA DEAE

To claim this, I am signing this object:

@sitle
sitle / gist:a3e44803444f739341234cc567363ea8
Created December 8, 2016 03:00 — forked from philipz/gist:2eb126f6c68568a1ef57
Docker-Machine for VMware vSphere

Docker Machine and VMware vSphere

  1. Install govc go get github.com/vmware/govmomi/govc and go install github.com/vmware/govmomi/govc
  2. export GOVC_URL='https://[USERNAME]:[PASSWORD]@[ESXI-OR-VCENTER-HOSTNAME-OR-IP]/sdk' and export GOVC_INSECURE=1 from govmomi (vSphere SDK for Go), govc CLI & Kubernetes on vSphere
  3. docker-machine create vmdocker --driver vmwarevsphere --vmwarevsphere-datacenter ha-datacenter --vmwarevsphere-vcenter 192.168.2.12 --vmwarevsphere-username root --vmwarevsphere-password PASSWORD --vmwarevsphere-datastore 500G --vmwarevsphere-network "VM Network"
  4. For RancherOS on VMware vSphere
@sitle
sitle / app.py
Created July 14, 2020 20:53 — forked from thomasdarimont/app.py
Simple python example using flask, flask_oidc and keycloak, needs a small patch of flask_oidc: https://github.com/puiterwijk/flask-oidc/issues/35
import json
import logging
from flask import Flask, g
from flask_oidc import OpenIDConnect
import requests
logging.basicConfig(level=logging.DEBUG)
app = Flask(__name__)
@sitle
sitle / Dockerfile
Created April 26, 2021 21:01
Test VMS
# Prépare l'image de compilation.
FROM govpf/maven:3.6-jdk-8 AS builder
WORKDIR /usr/src/vms
# Installe les dépendances maven.
COPY pom.xml ./
RUN mvn dependency:go-offline
# Installe NodeJS, npm et autres dépendances de compilation.
#RUN apk add -U --no-cache nodejs npm python make g++
@sitle
sitle / Dockerfile
Last active November 25, 2021 22:06
Conteneuriser une application JAVA (pour l'instant, une doc publique permettant de rationnaliser les devs externes)
FROM govpf/maven:3.6-jdk-8 AS build
WORKDIR /opt/app/
COPY . .
RUN mvn -B package -DskipTests
FROM govpf/openjdk:8-jre
# Build-time metadata as defined at http://label-schema.org
ARG BUILD_DATE
ARG VCS_REF