Skip to content

Instantly share code, notes, and snippets.

View mcarbonneaux's full-sized avatar

CARBONNEAUX Mathieu mcarbonneaux

View GitHub Profile
@mathieucarbou
mathieucarbou / README.md
Last active April 7, 2024 07:55
Linky Teleinformation (TIC) + ESPHome + Home Assistant

Linky Teleinformation (TIC) + ESPHome + Home Assistant

Vue Home Assistant

Safari Screenshot 2023-02-15 01 58 53

Vue du Web Server

Screenshot 2023-02-15 at 12 24 23

@skylord123
skylord123 / esphome_config.yaml
Last active May 8, 2024 15:29
Wiegand ESP32-POE config
esphome:
name: west_warehouse_access_control
platform: ESP32
board: esp32-poe
includes:
- custom_components/wiegand_device/wiegand_device.h
ethernet:
use_address: west_warehouse_access_control
type: LAN8720
@maraino
maraino / list.sh
Last active May 6, 2022 11:31
Create CRL index.txt
#!/bin/sh
set -e
# prepare copy directory
mkdir -p /crl/db/
# clean leftovers
rm -f /crl/db/*
# make a copy of badger db
@ralmn
ralmn / README.MD
Last active June 5, 2024 19:54
Lixee ZLinky_TIC - Zigbee2MQTT

Intégration du Lixee ZLinky_TIC dans Zigbee2MQTT

Le module Zlinky_TIC est maintenant intégré officillement dans Zigbee2MQTT grâce au travail de @vk496 !

Pour archives :

@Da-Juan
Da-Juan / opnsense_add_OCSP_stapling.md
Last active February 21, 2024 15:00
opnsense/haproxy: add OCSP stapling support

Here is a work around to automate OCSP stapling on Opnsense with HAproxy plugin.

Hope it helps :)

I created a script based on acme.sh's haproxy deploy hook.

As /tmp is emptied on reboot you need to regenerate ocsp files on startup so I put the script as a startup script: /usr/local/etc/rc.syshook.d/start/99-ocsp (symoblic links in rc.syshook.d don't work).

#!/bin/sh                          
{
"meta": {
"theme": "stackoverflow"
},
"basics": {
"name": "Mathieu CARBONNEAUX",
"label": "IT Devops / Solutions Architect",
"photo": "https://www.ch2o.info/wp-content/uploads/2017/03/photocv-1x1.jpg",
"picture": "https://www.ch2o.info/wp-content/uploads/2017/03/photocv-1x1.jpg",
"image": "https://www.ch2o.info/wp-content/uploads/2017/03/photocv-1x1.jpg",
@aondio
aondio / ova-to-box.md
Created April 8, 2019 15:09
Convert VirtualBox .ova to Vagrant box

Here's a step by step guide to convert a Virtualbox .ova to a Vagrant box.

  1. List your VMs to find the VM id you want to convert:
$ VBoxManage list vms
"testing" {a3f59eed-b9c5-4a5f-9977-187f8eb8c4d4}
  1. You can now package the .ova VM as Vagrant box:
@sbernard31
sbernard31 / test.c
Last active March 11, 2023 18:04
UDP load balancer proto using bcc (XDP/Bpf)
#define KBUILD_MODNAME "foo"
#include <uapi/linux/bpf.h>
#include <linux/bpf.h>
#include <linux/icmp.h>
#include <linux/if_ether.h>
#include <linux/if_vlan.h>
#include <linux/in.h>
#include <linux/ip.h>
#include <linux/tcp.h>
#include <linux/udp.h>
@morrismukiri
morrismukiri / superset-admin-password-reset.sh
Created January 17, 2019 17:11
Apache Superset reset admin password
# activate the virtualenv
source /home/superset/.virtualenvs/superset/bin/activate
fabmanager reset-password --app superset --username admin --password enteryournewpassword
@jackblk
jackblk / squid_proxy_tutorial.md
Last active June 4, 2024 12:17
Tutorial on how to setup a squid proxy with authentication.

Note

This tutorial is for Ubuntu & Squid3. Use AWS, Google cloud, Digital Ocean or any services with Ubuntu to follow this tutorial.

Install squid & update

sudo apt-get update
sudo apt-get install squid3
sudo apt-get install apache2-utils