Skip to content

Instantly share code, notes, and snippets.

View mcarbonneaux's full-sized avatar

CARBONNEAUX Mathieu mcarbonneaux

View GitHub Profile
@mcarbonneaux
mcarbonneaux / opnsense_add_OCSP_stapling.md
Created June 22, 2023 15:25 — forked from Da-Juan/opnsense_add_OCSP_stapling.md
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                          
@mcarbonneaux
mcarbonneaux / vcredistr.md
Created May 18, 2023 19:25 — forked from ChuckMichael/vcredistr.md
Visual C++ Redistributable Packages

Microsoft Visual C++ Redistributable Packages

  • Microsoft Visual C++ 2005 Redistributable Package
    • x64 8.0.61000 (EOL)
    • x86 8.0.61001 (EOL)
  • Microsoft Visual C++ 2008 Redistributable Package
    • x64 9.0.30729.6161 (EOL)
    • x86 9.0.30729.6161 (EOL)
  • Microsoft Visual C++ 2010 Redistributable Package
  • x64 10.0.40219.473
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Bundle
Name="Example Product"
Version="1.2.3.4"
Manufacturer="John Doe"
Copyright="© 2022 John Doe"
@mcarbonneaux
mcarbonneaux / ova-to-box.md
Created April 18, 2023 20:37 — forked from aondio/ova-to-box.md
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:
@mcarbonneaux
mcarbonneaux / how-to-git-patch-diff.md
Created November 1, 2022 20:47 — forked from nepsilon/how-to-git-patch-diff.md
How to generate and apply patches with git? — First published in fullweb.io issue #33

How to generate and apply patches with git?

It sometimes happen you need change code on a machine from which you cannot push to the repo. You’re ready to copy/paste what diff outputs to your local working copy.

You think there must be a better way to proceed and you’re right. It’s a simple 2 steps process:

1. Generate the patch:

git diff &gt; some-changes.patch
@mcarbonneaux
mcarbonneaux / README.MD
Created May 20, 2022 20:11 — forked from ralmn/README.MD
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 :

@mcarbonneaux
mcarbonneaux / list.sh
Created May 6, 2022 11:31 — forked from maraino/list.sh
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
@mcarbonneaux
mcarbonneaux / README.md
Created June 27, 2021 00:24 — forked from detiber/README.md
Using CFSSL as an external CA for kubeadm

CFSSL as an external CA for non-ha kubeadm intialized clusters

Using cfssl to Create an External CA Infrastructure

Install cfssl

# This requires an existing Go environment with GOPATH set
go get -u github.com/cloudflare/cfssl/cmd/...
@mcarbonneaux
mcarbonneaux / travis2githubassetupload.sh
Last active July 10, 2020 17:30
To upload asset on github release from travis-ci build
if [ -f $1 ]; then
echo "Start try upload asset $1 to ${TRAVIS_PULL_REQUEST_SLUG} on tag: ${TRAVIS_TAG} at $(date)..."
ASSETTAGID=$(curl --no-progress-meter -q -u "${GITHUB_UPLOAD_USERNAME}:${GITHUB_UPLOAD_TOKEN}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${TRAVIS_PULL_REQUEST_SLUG}/releases/tags/${TRAVIS_TAG} | awk '/"assets": /{flag=1}/"id": /{sub(",$","",$2);id=$2;}/"name": /{sub("^\"","",$2); sub("\",$","",$2);name=$2; if (name=="'"$1"'") {print id;exit}}')
ASSETURL=$(curl --no-progress-meter -q -u "${GITHUB_UPLOAD_USERNAME}:${GITHUB_UPLOAD_TOKEN}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${TRAVIS_PULL_REQUEST_SLUG}/releases/tags/${TRAVIS_TAG} | awk '/"assets_url": /{sub("^\"","",$2); sub("\",$","",$2); sub("^https://api[.]","https://uploads.",$2);print $2;exit}')
if [ -z "${ASSETURL}" ]; then
@mcarbonneaux
mcarbonneaux / README.md
Created June 26, 2020 16:15 — forked from ogarrett/README.md
WebSockets TrafficScript library

This Riverbed TrafficScript library implements support for identification and modification of WebSockets traffic in Stingray Traffic Manager.

For more details and usage instructions, check out https://splash.riverbed.com/docs/DOC-1451

Tags: #Stingray #TrafficScript #WebSockets #splash.riverbed.com