Skip to content

Instantly share code, notes, and snippets.

View Velocet's full-sized avatar
🎱
keep it coming >

Velocet Velocet

🎱
keep it coming >
View GitHub Profile
@Velocet
Velocet / Unlock-PowerCfg.ps1
Last active April 23, 2024 22:32
Unlock/Unhide all Power Plan Settings/Options on Windows 10/11
#Requires -RunAsAdministrator
# Unlock-PowerCfg - v22.05.11
# Disable "Connected Standby"
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Power' -Name 'CSEnabled' -Value 0 -Force
# Get Power Settings entries and add/set 'Attributes' to 2 to unhide
$PowerCfg = (Get-ChildItem 'HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerSettings' -Recurse).Name -notmatch '\bDefaultPowerSchemeValues|(\\[0-9]|\b255)$'
foreach ($item in $PowerCfg) { Set-ItemProperty -Path $item.Replace('HKEY_LOCAL_MACHINE','HKLM:') -Name 'Attributes' -Value 2 -Force }
@Velocet
Velocet / README.me
Created May 13, 2023 14:18
GitHub README.md Template with ToC, Centered (+ formatted) Text, Top-Link, etc.
<!-- # GH README Template --><!-- centered title v1: plain markdown -->
<!-- <h1 align="center">GH README Template</h1>--><!-- centered title v2: html -->
<div align="center"><h1><!-- centered title v3: html + markdown/emoji support -->
:trollface:<br/>GH README Template<!-- A centered title inside a table with markdown -->
:-:
</h1></div>
<!--
Badges: [shields.io](https://shields.io) | Example: [![](https://img.shields.io/badge/velocet-blue?style=for-the-badge)](https://github.com/velocet/)
@Velocet
Velocet / Python Module Template
Created October 26, 2022 23:35 — forked from jfrfonseca/Python Module Template
Python Basic "Empty" Module File Template, with separations and PEP-8 conformity
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""A one-line description or name.
A longer description that spans multiple lines. Explain the purpose of the
file and provide a short list of the key classes/functions it contains. This
is the docstring shown when some does 'import foo;foo?' in IPython, so it
should be reasonably useful and informative.
"""
# -----------------------------------------------------------------------------
@Velocet
Velocet / EDK2_2015_GUIDs-2017-04-27.csv
Last active October 11, 2020 10:30
EDK2 2015 GUIDs - Consolidated list of all *.dec/*.inf files as of 2017-04-27 (some duplicates removed)
00000000-0000-0000-0000-000000000000 Zero
00000000-0000-0000-0000-000000000000 EfiPartTypeUnused
00000000-0000-0000-0000-000000000000 EfiTpmDeviceInstanceNone
00160F8D-2B35-4DF2-BBE0-B272A8D631F0 FirmwarePerformanceDxe
00214CC1-06D1-45FE-9700-DCA5726AD7BF ArmVirtPlatformLib
0049858F-8CA7-4CCD-918B-D952CBF32975 VirtioFdtDxe
0053D9D6-2659-4599-A26B-EF4536E631A9 ShellAlias
0065D394-9951-4144-82A3-0AFC8579C251 EfiPeiRscHandlerPpi
00720665-67EB-4A99-BAF7-D3C33A1C7CC9 EfiTcp4ServiceBindingProtocol
00C86DB8-013B-4FF4-B8E9-208F4FCF1C00 LibSignal
@Velocet
Velocet / purge.py
Created August 12, 2019 19:40
Unlike all the tweets!
#!/usr/bin/env python3
### HowTo:
### - Get a backup of your data from twitter
### - Extract the ids from likes.js to likes.txt (every line holds one id)
### - Create twitter dev acc and register your app
### - propagate the api keys (TWITTER_CONSUMER_KEY, etc) to the system
### - run the script and enjoy
###
### ATTENTION:
@Velocet
Velocet / keybase.md
Created January 15, 2018 16:55
keybase.md

Keybase proof

I hereby claim:

  • I am velocet on github.
  • I am velocet (https://keybase.io/velocet) on keybase.
  • I have a public key ASCaFYsxdhO37Onjo4hfT16c1w9RaUhbktUW-pr010iZ1go

To claim this, I am signing this object: