Skip to content

Instantly share code, notes, and snippets.

View brenard's full-sized avatar

Benjamin Renard brenard

  • Easter-eggs
  • Montpellier
View GitHub Profile
@brenard
brenard / search_bad_python_binlibs.py
Created December 8, 2024 20:24
Identify bad binary libs in x86 HA docker image
#! /usr/bin/env python3
import sys
from pathlib import Path
from readelf import readelf
from readelf.err import ParseError
from readelf.const import ISA
from importlib import metadata as importlib_metadata
excepted_isa = ISA.ISA_X86
@brenard
brenard / gist:470b5fdddf5b4e7351fceb68ee759b45
Last active December 2, 2024 16:06
Bootstrap 5 - Three states switches
<style>
input.form-3s-switch {
width: 2em;
height: 1em;
margin: 0.25em 0.25em 0 0;
vertical-align: top;
background-color: #fff;
background-repeat: no-repeat;
background-position: center;
background-size: contain;
@brenard
brenard / libvirt-bootstrap.sh
Last active October 3, 2017 18:27
libvirt-bootstrap.sh adapted for Debian Jessie
#!/bin/sh -
#===============================================================================
# vim: softtabstop=4 shiftwidth=4 expandtab fenc=utf-8 spell spelllang=en cc=81
#===============================================================================
#
# FILE: bootstrap-webvirtmgr.sh
#
# DESCRIPTION: Bootstrap webvirtmgr installation for various distributions
#
# BUGS: https://github.com/retspen/webvirtmgr-boostrap/issues