Skip to content

Instantly share code, notes, and snippets.

@y0ug
y0ug / BootstrapWin.ps1
Last active December 3, 2022 00:14
Bootstrap windows 10 machine
# Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString("https://gist.githubusercontent.com/y0ug/0c5859de8858f9229de8fcf72a6ae691/raw/BootstrapWin.ps1"))
$kmsserver = "192.168.10.2:1688"
$gvlk = "W269N-WFGWX-YVC9B-4J6C9-T83GX" #windows10/11 pro
Set-TimeZone -Name "Romance Standard Time"
$features = @(
#"VirtualMachinePlatform"
#"Microsoft-Windows-Subsystem-Linux"
#"HypervisorPlatform"
REM nvim --headless --listen localhost:7777
@ECHO off
@SET FILE_PATH=
FOR /F %%I IN ('wsl.exe wslpath -a -u %1') DO @SET "FILE_PATH=%%I"
C:\Python310\Scripts\nvr.exe --nostart --servername localhost:7777 -p "file://%FILE_PATH%"