Skip to content

Instantly share code, notes, and snippets.

View NTB45's full-sized avatar
馃榾
馃槶

Nabeel Akhtar NTB45

馃榾
馃槶
View GitHub Profile
@NTB45
NTB45 / Boot_to_different_os_in_rEFInd.md
Last active March 17, 2025 14:52
Reboot to different OS in rEFInd

Filler

So, after looking at Darkhogg's "Reboot to {OS}" scripts for rEFInd Next Boot selection scripts I realised that that method doesn't work for me.

I could not find the PreviousBoot file at /sys/firmware/efi/efivars.

So, I started looking around the rEFInd efi directory and voila Its in the /boot/efi/EFI/refind/vars directory.

How to do it

So instead of modifying the contents of the file

@fernospam
fernospam / Amazfit Bip-U.md
Last active January 16, 2025 14:30
How to create watch faces for Amazfit Bip U (also GTR and GTS)

Creaci贸n de Esferas para Amazfit Bip U (tambi茅n GTR y GTS)

A continuaci贸n se relata lo m铆nimo necesario que hay que saber para crear esferas para varios relojes Amazfit. La explicaci贸n esta especialmente indicada para el modelo Bip-U, del cual apenas hay nada en internet, pero la mayor铆a de pasos son aplicables a otros modelos como GTS y GTR en sus distintas variedades, pues se utilizan las mismas herramientas.

Acceso a la app de creaci贸n de la esfera

Las esferas de varios modelos de Amazfit utilizan la app para este prop贸sito que se encuentra en la web de Huami (los relojes Xiaomi, Amazfit y Zepp los fabrica Huami).

Primero hay que darse de alta en Huami como developer (descripci贸n en https://amazfitwatchfaces.com/forum/viewtopic.php?t=2090)

@Darkhogg
Darkhogg / !RebootToOs.md
Last active March 17, 2025 14:44
"Reboot to {OS}" scripts for rEFInd Next Boot selection

Reboot to {OS}

This a collection of notes and files used in my quest to create "Reboot to Windows" and "Reboot to Linux" scripts (and desktop shortcuts) for Linux and Windows respectively that automatically reboot my system and instruct rEFInd to auto-select the appropriate OS entry.

General Information

The key for achieving this is to modify the EFI Variable PreviousBoot with GUID 36d08fa7-cf0b-42f5-8f14-68df73ed3740, which rEFInd uses to store the last entry selected in the menu and, if using the + default entry, will be used to select the default OS. By doing this, we trick rEFInd into booting the OS we choose without having to be physically there to press the keyboard.