Skip to content

Instantly share code, notes, and snippets.

View jrandiny's full-sized avatar
🎯
Focusing

Joshua jrandiny

🎯
Focusing
View GitHub Profile
@polikutinevgeny
polikutinevgeny / lid_wakeup.patch
Created August 26, 2020 01:12
Patch Yoga Slim 7 DSDT table to wakeup on lid open (when already patched to advertise S3)
--- a/dsdt.dsl 2020-08-25 18:13:11.091416139 +1000
+++ b/dsdt.dsl 2020-08-26 10:59:17.854877511 +1000
@@ -6993,6 +6993,18 @@
Return (One)
}
+ Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake
+ {
+ If ((WKPM == One))
+ {
@mbinna
mbinna / effective_modern_cmake.md
Last active May 15, 2025 16:53
Effective Modern CMake

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft

@Mygod
Mygod / export-ble-infos.py
Last active December 30, 2024 18:38
Export your Windows Bluetooth LE keys into Linux!
#!/usr/bin/python3
"""
Copyright 2021 Mygod
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0