Skip to content

Instantly share code, notes, and snippets.

@leventerevesz
leventerevesz / gpio-pca953x.patch
Created September 22, 2022 11:03
Add pca9505 mask interrupt support to gpio-pca953x.c
From 277f00fe0486c3eba4743937afe2090cffe925da Mon Sep 17 00:00:00 2001
From: Levente <levente.revesz@eilabs.com>
Date: Thu, 22 Sep 2022 10:30:30 +0200
Subject: [PATCH] Add support for interrupt mask register in pca9505
---
drivers/gpio/gpio-pca953x.c | 36 ++++++++++++++++++++++++++++++++++--
1 file changed, 34 insertions(+), 2 deletions(-)
diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c
@leventerevesz
leventerevesz / main.py
Created April 19, 2020 13:53
Azure IoT Edge PythonModule example
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for
# full license information.
import time
import os
import sys
import asyncio
from six.moves import input
import threading

Recreating the Windows bootloader on a new EFI partition

This guide is for UEFI-GPT Windows installs. Microsoft's bcdboot utility can recreate the bootloader on any selected partition quite easily, and it won't break any existing EFI entries (unlike the bootrec /fixmbr on MBR installs).

This process can be done on a working Windows install, or on the Windows Installer. To access the Command Promt on the Windows Installer, press ShiftF10 after the Windows Setup window appears, or click Next > Repair your computer.

Assign a drive letter to the EFI partition you want to use

You can do this with Disk Managment as well, if you can boot the installed Windows.

Enter diskpart