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 / Update-PipPackages.ps1
Last active July 6, 2024 22:29
Snippets & Templates (python/PwSh/bash)
function Update-PythonPipPackages {
<#
.SYNOPSIS
Update all outdated pip Packages
.DESCRIPTION
Upgrade every outdated pip package and take care of error handling.
Includes Verbose Output. Turn on with the -verbose switch.
.ONELINER: (pip list --outdated) | Select -Skip 2 | % {pip install --upgrade $($_.split(' ')[0])}
@Velocet
Velocet / README.md
Last active May 3, 2024 17:43
GitHub README.md Template with ToC, Centered (+ formatted) Text, Top-Link, etc.

GH README Template

description
footer
@Velocet
Velocet / Unlock-PowerCfg.ps1
Last active November 6, 2024 19:28
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 / 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:

@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