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
:: ----------------------------------------------------------------------------------------- | |
:: Cheat Command Wrapper Script | |
:: ----------------------------------------------------------------------------------------- | |
:: This batch script acts as a wrapper for 'cheat.exe', enhancing its functionality | |
:: by allowing more intuitive command-line interactions. Specifically, it: | |
:: | |
:: 1. Directly accesses cheatsheets or tags with a single argument. | |
:: 2. Facilitates search within a cheatsheet using multiple arguments, treating them | |
:: as a single search query. | |
:: 3. Dynamically resolves the paths to the community and personal cheatsheets |
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
:: ---- Lines beginning with :: are comments ---- | |
:: This script is meant to make it easy to transcribe a video file using WhisperCPP. | |
:: You can simply drag a video file into the cmd window, then it will use ffmpeg to extract the audio, then transcribe using WhisperCPP and output to a text file. | |
:: | |
@echo off | |
set /p videopath="Enter the full path to the video file to transcribe: " | |
:: Remove quotes from the input path | |
set videopath=%videopath:"=% |
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
# This PowerShell script finds the icon source for a given file. | |
# It first tries to extract the icon from the associated executable, | |
# and if not found, it looks up the icon in the Windows Registry. | |
# Author: ThioJoe / GitHub.com/ThioJoe | |
param( | |
[string]$initialFilePath # Initial file path parameter for direct execution | |
) | |
# Function to prompt the user for a file path. |
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
# Description: This script will automatically copy the necessary GPU drivers from your current host machine into a Hyper-V Virtual Machine | |
# so you can pass through the GPU to the VM. You should run this whenever you update your graphics drivers on the host. | |
# | |
# Author: ThioJoe -- https://github.com/ThioJoe | |
# | |
# Note: Currently this only works for Nvidia GPUs. But it does support if you have multiple GPUs. | |
# | |
# OPTIONAL ARGUMENTS: | |
# -debug | Enables debug messages that pause the script for each step (No additional string required, just add -debug) | |
# -name | Sets the virtual machine name so it doesn't need to ask |
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
# Script to easily set resource allocation for GPUs to be passed through into a Hyper-V VM | |
# | |
# Author: ThioJoe / https://github.com/thiojoe | |
# | |
### Instructions for copying drivers to VM - Will likely need to do this before running this script | |
# NOTE: Instead of manually copying the files, if you have an Nvidia GPU you can use my other script called "Copy-GPU-Drivers-VM.ps1" to do it automatically | |
# 1. Open C:\Windows\System32 on host machine and copy any files beginning with "nv" (Except nvspinfo.exe and NvAgent.dll , which are unrelated) | |
# 2. Place those files into the System32 folder on the VM | |
# 3. On the VM, create the following directory: C:\Windows\System32\HostDriverStore\FileRepository | |
# 4. For Nvidia GPUs, open C:\Windows\System32\DriverStore\FileRepository, copy any folders beginning with "nv_" (The number of folders should match the number of GPUs, or at least number of different models of GPU) |
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
@echo off | |
:: Note: Lines beginning with "REM" or :: are comments | |
:: Script by: https://github.com/thiojoe | |
:: Purpose: Creates a much more user friendly output for the Microsoft Error Lookup Tool (err.exe). It parses the original output and modifies the text. | |
:: Usage: Just call the batch file with command prompt along with the error code the same as you would with err.exe | |
:: Example: error.bat 50 | |
:: Recommended to rename this script to something shorter like 'error.bat'. Must be next to the lookup tool exe file. | |
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
Retrieved using: | |
site_packages = site.getsitepackages()[0] | |
packages = os.listdir(site_packages) | |
------------------------------------------------------------------------------------ | |
Automat-20.2.0.dist-info | |
Babel-2.11.0.dist-info | |
Bottleneck-1.3.5.dist-info |
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
# A basic script for uninstalling app packages in Windows 10/11, including those pre-installed with Windows | |
# | |
# Note: If you get an error about the script not being allowed to run, the below command will change the execution polciy temporarily for one session only: | |
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process | |
# | |
# To execute the script, open a Powershell window to the directory with the script and run the following command using your scripts file name (and don't forget the .\ ) | |
# .\WhateverScriptName.ps1 | |
# ------------------------------------------------------------------------------------------- | |
# Script by ThioJoe - https://github.com/ThioJoe | |
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
@echo off | |
setlocal enabledelayedexpansion | |
rem | Lines beginning with 'rem' are comments | |
rem ------------------------------------------------------------------------------------------- | |
rem | "Icon Upscaler" Script by ThioJoe: https://github.com/ThioJoe | |
rem | I created this script specifically for upscaling very low res (such as 256x256) icons like those in Windows. It uses a combination of Image Magick (to first improve the transparency edges) and the RealCugan-ncnn-vulkan upscaler which seems to perform the best for this use case. Of course, the script can be used for all sorts of images, but I have found this to yield the best results of any other method, and better than just using an upscaler alone. |
NewerOlder