Skip to content

Instantly share code, notes, and snippets.

View sbraz's full-sized avatar

Louis Sautier sbraz

  • Lyon, France
  • 01:12 (UTC +02:00)
View GitHub Profile
@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()