Skip to content

Instantly share code, notes, and snippets.

View NominaceTacitus's full-sized avatar

DoNTurnBackInAnger NominaceTacitus

View GitHub Profile
@raspi
raspi / enable-all-advanced-power-settings.ps1
Last active April 22, 2025 12:03
Enable all advanced power settings in Windows.
# List all possible power config GUIDs in Windows
# Run: this-script.ps1 | Out-File powercfg.ps1
# Then edit and run powercfg.ps1
# (c) Pekka "raspi" Järvinen 2017
$powerSettingTable = Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSetting
$powerSettingInSubgroubTable = Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSettingInSubgroup
Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSettingCapabilities | ForEach-Object {
$tmp = $_.ManagedElement
@DavidAnson
DavidAnson / common-markdown-mistakes.md
Last active April 20, 2025 00:27
A few common Markdown mistakes

The following snippets show some common Markdown mistakes.

Click the Raw button to see the source text and understand the author's intent.

GitHub's parser handles some of these cases; other parsers do not.

To catch these problems automatically: