Skip to content

Instantly share code, notes, and snippets.

View AndreaCovelli's full-sized avatar
🗺️
Around the world

Andrea Covelli AndreaCovelli

🗺️
Around the world
View GitHub Profile
@AndreaCovelli
AndreaCovelli / lenovo-uefi-kek-fwupd-fix.md
Last active August 17, 2026 13:53
Fix for Lenovo UEFI KEK CA update failing on fwupd

Handling fwupdmgr UEFI KEK CA Permission Denied on Lenovo Systems

When updating Secure Boot certificates on Linux, fwupdmgr may fail while writing a UEFI Key Exchange Key (KEK) update. This has been observed on systems such as the AMD-based Lenovo ThinkCentre M715q, but similar symptoms can occur on other Lenovo firmware and are not specific to AMD.

The Error

Running fwupdmgr upgrade --force may fail with:

Upgrade KEK CA from 2011 to 2023?
@cbh123
cbh123 / codex-review-prompt.md
Created April 14, 2026 23:58
OpenAI Codex PR review agent system prompt (from codex-rs/core/review_prompt.md)

Review guidelines:

You are acting as a reviewer for a proposed code change made by another engineer.

Below are some default guidelines for determining whether the original author would appreciate the issue being flagged.

These are not the final word in determining whether an issue is a bug. In many cases, you will encounter other, more specific guidelines. These may be present elsewhere in a developer message, a user message, a file, or even elsewhere in this system message. Those guidelines should be considered to override these general instructions.

Here are the general guidelines for determining whether something is a bug and should be flagged.

@jmceleney
jmceleney / xiaomi-enable-mesh-telnet.py
Last active July 5, 2026 15:29
Python3 file that enables netmode4 on a Xiaomi RB01 AX3200 router
import ssl
import socket
# This script simply replays one side of an intercepted conversation between two Xiaomi
# RB01 (International) AX3200 routers negotiating meshing.
# In effect the script poses as a mesh slave, which causes the mesh master to enable netmode4.
# Enabling netmode is needed as one step in unlocking the router and flashing OpenWrt.
# The router should already have been taken through basic set-up before running this script.
# Netmode4 can be confirmed with curl by requesting the following URL, where ${token} is the "stok"
# variable from your admin session:
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active November 14, 2026 04:32
Conventional Commits Cheatsheet
@jaskiratr
jaskiratr / chmod-400.cmd
Created June 29, 2018 01:03
Set permission of file equivalent to chmod 400 on Windows.
# Source: https://stackoverflow.com/a/43317244
$path = ".\aws-ec2-key.pem"
# Reset to remove explict permissions
icacls.exe $path /reset
# Give current user explicit read-permission
icacls.exe $path /GRANT:R "$($env:USERNAME):(R)"
# Disable inheritance and remove inherited permissions
icacls.exe $path /inheritance:r
@tuxfight3r
tuxfight3r / 01.bash_shortcuts_v2.md
Last active November 13, 2026 16:21
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line