Skip to content

Instantly share code, notes, and snippets.

@sk22
sk22 / how-to-media-button.md
Last active December 27, 2025 07:42
Replace "PC Manager" Fn key with play/pause

Replace "PC Manager" Fn key with custom action

How I replaced the "PC Manager" Fn key on my Huawei Matebook X Pro with a play/pause button.

Background

The Huawei Matebook X Pro, as well as other devices from various manufacturers have a Fn key with a proprietary function. On the Matebook, it's a button that does nothing but open the so-called PC Manager software, and is located on the F10 key. Since at least I really don't need this function and am missing a play/pause Fn key, I decided to try replacing the function.

@ECHO OFF
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDPrivate
:CONFIRM
echo Are you sure to lock this folder? (Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
@rvrsh3ll
rvrsh3ll / windows-keys.md
Created February 18, 2024 22:44
Windows Product Keys

NOTE

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Index

TLP 1.4 Test: Battery Care for Non-ThinkPads

Introduction

TLP has supported charge control thresholds for ThinkPads since the beginning. With release 1.4, support will be extended to laptops from selected other vendors for which a corresponding driver already exists in the Linux kernel.

Since I don't own any of the newly supported laptops, I'm reaching out to the community of TLP users with a request to test the new functionality on their hardware.

TLP 1.4 Test: Battery Care for Huawei MateBooks

Read the overview document first.

Supported Features

Huawei laptops using the huawei_wmi driver provide both a start and a stop charge threshold ranging from 0% (threshold off) to 100%. The hardware behaviour is:

  1. When connecting the charger, charging starts if the charge level is below the start threshold
@ryanhossain9797
ryanhossain9797 / windows_activation.md
Created February 11, 2025 17:23 — forked from bramada/windows_activation.md
Activate Windows for free

For Windows 10

Step 1 - Open PowerShell or Command Prompt as administrator

Step 2 - Install KMS client key

slmgr /ipk your_license_key

Replace your_license_key with following volumn license keys according to Windows Edition:

@xerpi
xerpi / SceCompat.c
Last active December 27, 2025 07:17
PSVita Reverse Engineering
/*
* SceKermit (MIPS side):
* - https://gist.github.com/TheOfficialFloW/4fdec09e53a7c93a0d07d9e3e982dff4#file-kermit-c-L145
* - https://github.com/Total-Noob/kermit_reverse/blob/master/main.c
*/
/*
* Initial state:
* MIPS ARM
* Consumer ready = true Producer ready = true
@PrinceSinghhub
PrinceSinghhub / DSA Calendar 2026 | Plan of Action.md
Last active December 27, 2025 07:13
Everything from 0 to Advance | DSA Calendar 2026 | Plan of Action

DSA Calendar 2026 | Plan of Action 🔥

DSA is no longer about solving random sheets or memorizing solutions. It’s about a clear, structured, and realistic approach from absolute beginner to interview-ready Candidate.

  • How to start DSA from zero (even if you don’t know coding)
  • When to focus on language basics vs DSA
  • A 3-phase preparation strategy used by serious engineers
  • Exact timelines for topics, patterns, and problem counts
  • Why 300–400 problems ≠ success (and what actually matters)