Skip to content

Instantly share code, notes, and snippets.

View sbraz's full-sized avatar

Louis Sautier sbraz

  • Lyon, France
  • 04:21 (UTC +02:00)
View GitHub Profile
@sbraz
sbraz / esp_over_raid.sh
Last active September 26, 2025 04:01
Convert EFI System Partitions to RAID1 on OVHcloud bare-metal servers
#!/bin/bash
# DISCLAIMER:
# This script is provided "as is" with no guarantees. Use at your own risk.
# The author takes no responsibility for any data loss, system breakage,
# or other damage that may occur from running it.
set -euo pipefail
ESP_BACKUP_PATH="/root/efi_system_partition_data"
@sbraz
sbraz / alpine-rescue.ipxe
Created April 29, 2025 11:26
iPXE script to boot into a live Alpine Linux rescue on OVHcloud bare metal servers
#!ipxe
echo Booting Alpine Linux rescue
# Used below for SSH keys
set space:hex 20
set space ${space:string}
set arch x86_64
#set version edge
@sbraz
sbraz / grub_reboot.py
Created November 9, 2017 21:43
A quick hack to temporarily change grub2's default entry from Windows
import subprocess
import sys
import ctypes
import msvcrt
import os
import re
def is_admin():
try:
return ctypes.windll.shell32.IsUserAnAdmin()