Skip to content

Instantly share code, notes, and snippets.

@RezaBabapour
RezaBabapour / autoSave.ps1
Last active March 1, 2026 09:17
Local autoSave for Microsoft word exel powerPoint
# Run command: powershell -ExecutionPolicy Bypass -File .\autoSave.ps1
Add-Type -AssemblyName System.Windows.Forms
Add-Type @"
using System;
using System.Runtime.InteropServices;
public class WinActive {
[DllImport("user32.dll")]
@Ethorbit
Ethorbit / gpupv-acceleration-tut.md
Last active February 25, 2026 08:52
Hyper-V tutorial to partition GPU for virtualization + achieve full GPU acceleration with it and daily drive it.
@Alee14
Alee14 / win-dism.md
Last active March 7, 2026 07:21
Installing Windows using CMD. (UEFI and BIOS Supported)

Installing Windows using CMD. (UEFI and BIOS Supported)

Guide created by Andrew Lee. Supports Windows 7, 8, 10, and 11.

Note that this guide does not go into detail, it's just providing the commands to install Windows.

Be cautions when doing this when dualbooting, please backup any existing data or you will lose them all.

Open CMD

First open CMD by pressing the following keys after booting into setup: Shift + F10

Creating Partition

@jwallet
jwallet / Microsoft.PowerShell_profile.ps1
Last active December 9, 2023 00:46
Windows Powershell functions to convert video files with mkvmerge from mp4 and avi to mkv and set all mkv default audio and video language to your desired language with mkvpropedit all in batch to be used for your PLEX server or something else.
# Credit: https://www.github.com/jwallet
function mkv-set-language([string]$lang="eng") {
Get-ChildItem -Path "." -Name -Recurse -File -Include *.mkv | ForEach { echo ">>> Getting file: $_"; Set-ItemProperty $_ -name IsReadOnly -value $false | & 'C:\Program Files (x86)\MKVToolNix\mkvpropedit.exe' --tags all:'' --delete title --edit track:v1 --set language=$lang --edit track:a1 --set language=$lang "$_" }
}
function to-mkv([string]$lang="eng") {
Get-ChildItem -Path "." -Name -Recurse -File -Include *.avi,*.mp4 | ForEach { echo ">>> Getting file: $_"; $_ -match '(?<filename>.*)[.]'; $output = $matches["filename"] + ".mkv"; Set-ItemProperty $_ -name IsReadOnly -value $false | & 'C:\Program Files (x86)\MKVToolNix\mkvmerge.exe' -o $output --default-language $lang "$_" }; mkv-set-language $lang;
}