This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NOTE - THIS SCRIPT IS NOW OBSOLETE - SEE MY OTHER REPO FOR A MUCH MORE COMPREHENSIVE TOOL: https://github.com/ThioJoe/Windows-Super-God-Mode | |
# Get All Shell Folder Shortcuts Script (Updated 8/10/2024) | |
# Original source: https://gist.github.com/ThioJoe/16eac0ea7d586c4edba41b454b58b225 | |
# This PowerShell script is designed to find and create shortcuts for all special shell folders in Windows. | |
# These folders can be identified through their unique Class Identifiers (CLSIDs) or by their names. | |
# The script also generates CSV files listing these folders and associated tasks/links. | |
# How to Use: | |
# 1. Open PowerShell and navigate to the path containing this script using the 'cd' command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PowerShell script to disable Windows power management on all currently connected serial ports, including USB adapters | |
# In simpler terms, it prevents Windows from turning off connected serial devices to save power. | |
# Equivalent to right-clicking on a serial port device in Device Manager > Properties > "Power Management" Tab > Unchecking "Allow the computer to turn off this device to save power." | |
$hubs = Get-CimInstance -ClassName Win32_SerialPort | Select-Object Name, DeviceID, Description | |
$powerMgmt = Get-CimInstance -ClassName MSPower_DeviceEnable -Namespace root\wmi | |
foreach ($p in $powerMgmt) { | |
$IN = $p.InstanceName.ToUpper() | |
foreach ($h in $hubs) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Utility | |
type GetFirstCharacter<Text extends string> = Text extends `${infer First}${infer Rest}` ? First : never; | |
type StringStartsWith<Source extends string, Char extends string> = Source extends `${infer First}${infer Rest}` | |
? First extends Char | |
? true | |
: false | |
: false; | |
type SliceStringFirst<Source extends string> = Source extends `${infer First}${infer Rest}` | |
? Rest | |
: never; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Decrypt Mii QR codes from 3DS / Wii U / Miitomo | |
# Usage: python3 <input file> <output file> | |
# QR docs: https://www.3dbrew.org/wiki/Mii_Maker | |
from Crypto.Cipher import AES | |
from sys import argv | |
key = bytes([0x59, 0xFC, 0x81, 0x7E, 0x64, 0x46, 0xEA, 0x61, 0x90, 0x34, 0x7B, 0x20, 0xE9, 0xBD, 0xCE, 0x52]) | |
with open(argv[1], "rb") as infile, open(argv[2], "wb") as outfile: |