Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am olberger on github.
  • I am olberger (https://keybase.io/olberger) on keybase.
  • I have a public key whose fingerprint is ACE4 6EBD 89F6 656D 6642 660B E941 DEDA 7C5B B6A5

To claim this, I am signing this object:

var noun_type_debian_release = new CmdUtils.NounType("release",
["any", "experimental", "stable",
"testing", "unstable", "oldstable",
"sid", "lenny", "etch", "squeeze"]);
var noun_type_texttile = new CmdUtils.NounType("text or title", ["Title", "Text"]);
var bugno_re = new RegExp("^#([0-9]+)");
// http://github.com/garyhodgson/ubiquity-rtm-api/blob/7299e60eab828fa89d76ce3c927faa1ad4064a23/ubiquity-rtm-api.js
@olberger
olberger / Tutoriel - Introduction informelle.ipynb
Last active December 16, 2015 03:49
Chapitre "3. Introduction informelle à Python" du Tutoriel Python officiel (traduit en français), repris de http://www.afpy.org/doc/python/2.7/tutorial/introduction.html
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@olberger
olberger / sparql.py
Created May 14, 2014 15:09
Using RDFAlchemy together with RDFLib's SPARQLStore to query DBPedia and process resources in OO way
import urllib2
import os
#import sys
from itertools import islice
from rdflib import Namespace, Graph, ConjunctiveGraph, URIRef, RDFS, RDF
from rdflib.plugins.stores.sparqlstore import SPARQLStore
from rdfalchemy.rdfSubject import rdfSubject
from rdfalchemy import rdfSingle, rdfMultiple
from rdfalchemy.descriptors import rdfAbstract, rdfLocale
from rdfalchemy.orm import mapper
@olberger
olberger / gen-webid-cert.sh
Last active January 14, 2018 17:15 — forked from njh/_README.md
Fix syntax problem for PKCS12 generation prompt
#!/bin/sh
#
# gen-webid-cert.sh: WebID Self-signed Certificate Generator
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
@olberger
olberger / mvp.org
Created April 6, 2020 17:47
Quick & dirty Python 3 i18n (with babel) MVP

Quick & dirty Python 3 i18n (with babel) MVP

Running Kata Containers in Minikube

minikube is an easy way to try out a kubernetes (k8s) cluster locally. It utilises running a single node k8s stack in a local VM.

Kata Containers is an OCI compatible container runtime that runs container workloads inside VMs.

Wouldn't it be nice if you could use kata under minikube to get an easy out of the box experience to try out Kata? Well, turns out with a little bit of config and setup that is already supported, you can!

@olberger
olberger / sinistre-auto.txt
Last active May 17, 2021 09:33
Sinistre auto
group: sinistre auto
Clients = {numCl:number nom:string prenom:string adresse:string}
Contrats = {numCont:number numCl:number type:string date:string}
Vehicules = {matriculeVe:number numCont:number numCl:number marque:string annee:number puissance:number}
Sinistres = {numSi:number matriculeVe:number date:string}
Simples = {numSi:number dateReparation:string}
Complexes = {numSi:number estimation:number}
@olberger
olberger / Vagrantfile
Last active January 25, 2022 07:40
"Rapidly spinning up a VM with Ubuntu, Docker and Minikube (using the –vm-driver=none option) on my Windows laptop using Vagrant and Oracle VirtualBox" by Marc Lameriks - Source: https://technology.amis.nl/2019/02/12/rapidly-spinning-up-a-vm-with-ubuntu-docker-and-minikube-using-the-vm-drivernone-option-on-my-windows-laptop-using-vagrant-and-ora…
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.define "ubuntu_minikube" do |ubuntu_minikube|
config.vm.network "forwarded_port",
guest: 8001,
host: 8001,
auto_correct: true