Skip to content

Instantly share code, notes, and snippets.

View sitle's full-sized avatar

Léonard TAVAE sitle

View GitHub Profile
@sitle
sitle / pokemon.csv
Created May 29, 2022 23:02 — forked from simsketch/pokemon.csv
pokemon.csv
NUMBER CODE SERIAL NAME TYPE1 TYPE2 COLOR ABILITY1 ABILITY2 ABILITY HIDDEN GENERATION LEGENDARY MEGA_EVOLUTION HEIGHT WEIGHT HP ATK DEF SP_ATK SP_DEF SPD TOTAL
1 1 11 Bulbasaur Grass Poison Green Overgrow Chrolophyll 1 0 0 0.7 6.9 45 49 49 65 65 45 318
2 1 21 Ivysaur Grass Poison Green Overgrow Chrolophyll 1 0 0 1 13 60 62 63 80 80 60 405
3 1 31 Venusaur Grass Poison Green Overgrow Chrolophyll 1 0 0 2 100 80 82 83 100 100 80 525
3 2 32 Mega Venusaur Grass Poison Green Thick Fat 1 0 1 2.4 155.5 80 100 123 122 120 80 625
4 1 41 Charmander Fire Red Blaze Solar Power 1 0 0 0.6 8.5 39 52 43 60 50 65 309
5 1 51 Charmeleon Fire Red Blaze Solar Power 1 0 0 1.1 19 58 64 58 80 65 80 405
6 1 61 Charizard Fire Flying Red Blaze Solar Power 1 0 0 1.7 90.5 78 84 78 109 85 100 534
6 2 62 Mega Charizard X Fire Dragon Black Tough Claws 1 0 1 1.7 110.5 78 130 111 130 85 100 634
6 3 63 Mega Charizard Y Fire Flying Red Drought 1 0 1 1.7 90.5 78 104 78 159 115 100 634
apiVersion: v1
kind: Namespace
metadata:
name: test2
labels:
name: test2
istio-injection: enabled
---
apiVersion: apps/v1
kind: Deployment
@sitle
sitle / nftables.conf
Last active March 7, 2022 20:41
Minimal firewall
#!/usr/sbin/nft -f
flush ruleset
table inet filter {
chain input {
type filter hook input priority 0;
# allow from loopback
iifname lo accept;
# established/related connections
@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
@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 / 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 / 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

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 / 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

OS X Preferences


#Disable window animations
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false

#Enable repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false