Skip to content

Instantly share code, notes, and snippets.

View LionelJouin's full-sized avatar

Lionel Jouin LionelJouin

  • Ericsson Software Technology
  • Stockholm, Sweden
  • 05:32 (UTC +02:00)
  • LinkedIn in/lioneljouin
View GitHub Profile
from matplotlib import pyplot as plt
from matplotlib import style
style.use('ggplot')
x = [5,8,10]
y = [12,16,6]
x2 = [6,9,11]
y2 = [6,15,7]
<!DOCTYPE html>
<html>
<head>
<title>koukou - CV - Lionel Jouin</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<script type="text/javascript" src="js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="https://code.jquery.com/ui/1.11.3/jquery-ui.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<style type="text/css">
@LionelJouin
LionelJouin / base-dev.js
Last active August 20, 2018 19:55
Weather-Station scripts
'use strict';
module.exports = function (app) {
var Station = app.models.Station;
var Sensor = app.models.Sensor;
var Sensors = [];
Sensor.create([
{ name: "Temperature", unit: "°C" },
---
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: psp.flannel.unprivileged
annotations:
seccomp.security.alpha.kubernetes.io/allowedProfileNames: docker/default
seccomp.security.alpha.kubernetes.io/defaultProfileName: docker/default
apparmor.security.beta.kubernetes.io/allowedProfileNames: runtime/default
apparmor.security.beta.kubernetes.io/defaultProfileName: runtime/default
---
# Source: calico/templates/calico-config.yaml
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
apiVersion: v1
metadata:
name: calico-config
namespace: kube-system
data:
# Typha is disabled.
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: network-attachment-definitions.k8s.cni.cncf.io
spec:
group: k8s.cni.cncf.io
scope: Namespaced
names:
plural: network-attachment-definitions
@LionelJouin
LionelJouin / ambassador-ambassador.proto
Last active September 27, 2021 14:26
New Meridio API
/*
Copyright (c) 2021 Nordix Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@LionelJouin
LionelJouin / commands
Last active October 29, 2021 14:47
nftables (nft list ruleset -ay)
nft add table inet meridio-nfqlb
nft add set inet meridio-nfqlb flow-a-saddrs-v4 { type ipv4_addr\; flags interval \; }
nft add set inet meridio-nfqlb flow-a-daddrs-v4 { type ipv4_addr\; flags interval \; }
nft add set inet meridio-nfqlb flow-a-saddrs-v6 { type ipv6_addr\; flags interval \; }
nft add set inet meridio-nfqlb flow-a-daddrs-v6 { type ipv6_addr\; flags interval \; }
nft add set inet meridio-nfqlb flow-a-sports { type inet_service\; flags interval \; }
nft add set inet meridio-nfqlb flow-a-dports { type inet_service\; flags interval \; }
nft add set inet meridio-nfqlb flow-a-protocols { type inet_proto\; flags interval \; }
nft add element inet meridio-nfqlb flow-a-saddrs-v4 { 179.10.10.0/24, 180.10.10.0/24 }
nft add element inet meridio-nfqlb flow-a-daddrs-v4 { 20.0.0.1/32, 40.0.0.0/24 }
@LionelJouin
LionelJouin / Instructions-opentelemetry-prometheus-grafana.md
Last active May 25, 2023 14:43
Observability with Open-Telemetry/Prometheus/Grafana

Observability with OpenTelemetry/Prometheus/Grafana

Installation

Install Prometheus and Grafana

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm install prometheus prometheus-community/kube-prometheus-stack
@LionelJouin
LionelJouin / Meridio-Multus-VLAN.md
Last active September 23, 2024 11:52
Meridio: Multiple attractor with same VLAN ID using multus

Meridio: Multiple attractor with same VLAN ID using multus

Requirements

  • Multus with CNI plugins >= v1.3.0
  • Meridio support for multiple network-attachments (Nordix/Meridio#421)

How it works

Bridge-VLAN drawio