Skip to content

Instantly share code, notes, and snippets.

View Devaniti's full-sized avatar

Dmytro Bulatov Devaniti

View GitHub Profile
@Devaniti
Devaniti / SystemSetup.ps1
Last active March 31, 2024 23:08
Setup script for new Windows 11 graphic developer PC.
# Script for setting up new Windows 11 PC for graphic development
# You need need to run it with administator rights
if (!([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) {
Start-Process -FilePath PowerShell.exe -Verb Runas -ArgumentList @("-ExecutionPolicy Bypass", "-File `"$($MyInvocation.MyCommand.Path)`"")
Exit
}
Push-Location $env:TEMP
function ShowFileExtensions {
@Devaniti
Devaniti / FindWindowsSDK.bat
Last active July 14, 2022 10:02
Script for finding Windows SDK path
@echo off
for /f "usebackq tokens=*" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -property installationPath`) do (
set VSDetectedDir=%%i
)
call "%VSDetectedDir%\Common7\Tools\VsDevCmd.bat" > nul
echo %WindowsSdkVerBinPath%
@Devaniti
Devaniti / Setup.bat
Last active August 3, 2023 19:24
(deprecated, please use https://gist.github.com/Devaniti/f2cc137cd746d103171393647248fc3a instead) Setup script for new Windows 11 graphic developer PC
rem Script for setting up new Windows 11 PC for graphic development
rem You need need to run it with administator rights
rem You can modify list of installed software below
rem Windows explorer settings
rem Sets option to always show file extensions
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f
rem Sets option to show hidden files (but not OS protected files)
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v Hidden /t REG_DWORD /d 1 /f
rem Sets option to show full path instead of just folder name in file explorer window title