This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Uncomment to debug: | |
#set -x | |
# Latest version at https://gist.github.com/olberger/4327fb94ca557e4ba58c0314d9c6f740, forked off from https://gist.github.com/mgrRaf/3432c0a189d7e7d48f9980b634f7b21e | |
# Usage: cas-get.sh {url} {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="$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: cas-get.sh {url} {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="$1" | |
ENCODED_DEST=`echo "$DEST" | perl -p -e 's/([^A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg' | sed 's/%2E/./g' | sed 's/%0A//g'` | |
#IP Addresses or hostnames are fine here | |
CAS_HOSTNAME=galaxy:9143 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Convert wrapper for pdfsandwich, to avoid using imagemagick's convert for PDF to PBM conversion, as it relies on GS under the hood, | |
# and GS security settings disallow such conversion on most distros. | |
# Instead of ImageMagick's convert, we then rely on poppler-utils' pdftoppm | |
# To be invoked with 'pdfsandwich -convert .../convert.sh' | |
# By using this I figured out the options passed | |
# convert -verbose $* | |
# which are of the form |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
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!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder