Skip to content

Instantly share code, notes, and snippets.

View hasselmm's full-sized avatar
♻️
do:🦝🍀 love:🌳🦋🚆🚴‍♂️

Mathias Hasselmann hasselmm

♻️
do:🦝🍀 love:🌳🦋🚆🚴‍♂️
View GitHub Profile
@hasselmm
hasselmm / delete-mok-variables.py
Created November 9, 2024 13:18
Properly from missing mmx64.efi for failed Linux installation
import firmware_variables as firmware
mok_namespace = "{605DAB50-E046-4300-ABB6-3DD810DD8B23}"
mok_variables = ["MokNew", "MokAuth"]
with firmware.privileges():
for name in mok_variables:
try:
firmware.delete_variable(name, namespace=mok_namespace)
print(f"- firmware variable {name} removed")
function inputsNotEmpty(inArr) {
return inArr.every(inp => {
return inp.value != '';
});
}
inputsNotEmpty([]);
@hasselmm
hasselmm / arduino-trybuild.md
Last active June 12, 2025 23:43
Try Build - Tries to build selected files of an Arduino Sketch

Try Arduino Build

Building Arduino sketches takes an imense amount of time. This is very annoying when fixing trivial issues like compile errors.

This tool tries to reduce your round-trip times by building only selected files of an Arduino Sketch.

Requirements