This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import sys | |
import ctypes | |
import msvcrt | |
import os | |
import re | |
def is_admin(): | |
try: | |
return ctypes.windll.shell32.IsUserAnAdmin() |