Skip to content

Instantly share code, notes, and snippets.

View hcartiaux's full-sized avatar
✌️

Hyacinthe Cartiaux hcartiaux

✌️
View GitHub Profile
@hcartiaux
hcartiaux / oar_completion.sh
Last active October 1, 2025 11:15
Bash completion file for the OAR batch scheduler user commands
# shellcheck shell=bash
################################################################################
# oar_completion.sh - bash completion script for OAR commands.
################################################################################
# Copyright (C) 2025 Hyacinthe Cartiaux <hyacinthe.cartiaux@uni.lu>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@hcartiaux
hcartiaux / backup.sh
Last active September 10, 2025 16:02
Convenient backup script to detect my encrypted USB backup disks, mount them and call bontmia
#!/bin/bash
ACTION="${1:-backup}"
# Backup configuration
declare TARGET="backup-perso"
declare MNTPOINT="/mnt/usbdisk"
declare SRC=~
# Device configurations
@wkurth-dev
wkurth-dev / init.lua
Created August 11, 2025 06:23
nevim config for mac
-- ~/.config/nvim/init.lua
-- Modern Neovim configuration following best practices
-- ============================================================================
-- LEADER KEYS - Set these first, before any plugins or mappings
-- ============================================================================
vim.g.mapleader = " " -- Use space as leader key
vim.g.maplocalleader = " " -- Use space as local leader too
-- ============================================================================
@hcartiaux
hcartiaux / pdu.sh
Created January 13, 2025 20:23
Prometheus exporter for PDUs power consumption
#!/bin/bash --posix
# Time-stamp: <Thu 2024-09-26 11:28:19 hcartiaux>
################################################################################
# Collect power consumption values using the PDUs in CDC-S02-005
################################################################################
#set -x
COMMAND=$(basename "$0")
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
RACKS_LIST="A02 A04 A05 A07-A A07-B A09 A11 A12 A14 B02 B04 B05 B07 B09 B11 B12 B14 C02 C05 C07 C09 C11 C12 C14 D02 D04 D05 D07 D09 D11 D12 D14"
@timothyham
timothyham / ipv6guide.md
Last active December 4, 2025 16:38
A Short IPv6 Guide for Home IPv4 Admins

A Short IPv6 Guide for Home IPv4 Admins

This guide is for homelab admins who understand IPv4s well but find setting up IPv6 hard or annoying because things work differently. In some ways, managing an IPv6 network can be simpler than IPv4, one just needs to learn some new concepts and discard some old ones.

Let’s begin.

First of all, there are some concepts that one must unlearn from ipv4:

Concept 1

@yorickdowne
yorickdowne / friday.md
Last active December 10, 2025 13:34
Debian 13 trixie upgrade

Debian 13

Caution Upgrading from Debian 12 to Debian 13 on machines with mdadm has intermittently failed for me; symptom is that grub EFI is not up to date and system boots into BIOS. Root cause under investigation; it might not be related to mdadm.

To start, read the official release notes.

If your install fits into "vanilla Debian plus maybe a handful of 3rd-party repos", then this guide for a simple upgrade to Debian 13 "trixie" from Debian 12 "bookworm" can be helpful. 3rd-party repos are handled with a find command.

Note upgrade is only supported from Debian 12 to Debian 13. If you are on Debian 11, upgrade to Debian 12 first. Then once on Debian 12, you can upgrade to Debian 13.

@jhale
jhale / README.md
Last active October 30, 2025 16:22
Spack against standard software set on uni.lu clusters

Spack for FEniCS on University of Luxembourg clusters

This should also be useful for other clusters where you want to use components (e.g. MPI, compilers) from the module system.

Setting up Spack

Start a session for building

si -N 1 -n 16 -c 1 -t 0-02:00:00 # on iris: -C broadwell or -C skylake

@pamolloy
pamolloy / README.md
Last active June 8, 2025 19:57
Mesh network using VXLAN over Wireguard
@AnnoyingTechnology
AnnoyingTechnology / Apple's SuperDrive tweak for use with Linux.md
Last active November 9, 2025 16:45
Make Apple's USB SuperDrive work on Linux

I was ready to throw it away, I opened it up and didn't find anything wrong with it. After a quick Google Search, turns out Apple fucked up their users (again) and locked this drive to only one laptop : the MacBook Air.

Bellow is the tweak (found online) to make it usable on Linux

# Debian/linux only - Linux SCSI generic driver
sudo apt install sg3-utils -y
@hcartiaux
hcartiaux / qcow2_net_backup.sh
Last active September 10, 2025 16:03
qcow2_net_backup.sh
#!/bin/bash
################################################################################
# qcow2_net_backup.sh - Backup qcow2 snapshot over SSH to files
#
# Copyright (c) 2012 Hyacinthe Cartiaux <Hyacinthe.Cartiaux@uni.lu>
#
# Description : see the print_usage function or launch 'qcow2_net_backup.sh --help'
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by