Skip to content

Instantly share code, notes, and snippets.

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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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 / 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

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:

@olberger
olberger / shibb-cas-get.sh
Created December 4, 2014 09:59
Connection to a web app protected via Shibboleth with curl
#!/bin/sh
#set -x
# Usage: shibb-cas-get.sh {username} {password} # If you have any errors try removing the redirects to get more information
# The service to be called, and a url-encoded version (the url encoding isn't perfect, if you're encoding complex stuff you may wish to replace with a different method)
DEST=https://myapp.example.com/
SP=https://myapp.example.com/index.php
IDP="https://myidp.example.com/idp/shibboleth&btn_sso=SSOok"

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 / mvp.org
Created April 6, 2020 17:47
Quick & dirty Python 3 i18n (with babel) MVP

Quick & dirty Python 3 i18n (with babel) MVP

@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