๐ช Windows
Dev Drive setup¶
:: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_environment_variables
SETX GRADLE_USER_HOME E:\.gradle
:: https://maven.apache.org/configure.html
SETX MAVEN_OPTS "-Dmaven.repo.local=E:\.m2\repository"
:: https://developer.android.com/tools/variables
SETX ANDROID_HOME E:\Android
SETX ANDROID_SDK_ROOT E:\Android
SETX ANDROID_USER_HOME E:\.android
Environment variables paths¶
Variable | Path |
---|---|
%AllUsersProfile% |
C:\ProgramData |
%AppData% |
C:\Users\{username}\AppData\Roaming |
%CommonProgramFiles% |
C:\Program Files\Common Files |
%CommonProgramFiles(x86)% |
C:\Program Files (x86)\Common Files |
%comSpec% |
C:\Windows\System32\cmd.exe |
%HomeDrive% |
C: |
%HomeDrive% |
C: |
%HomePath% |
C:\Users\{username} |
%LocalAppData% |
C:\Users\{username}\AppData\Local |
%ProgramData% |
C:\ProgramData |
%ProgramFiles% |
C:\Program Files |
%ProgramFiles(x86)% |
C:\Program Files (x86) |
%Public% |
C:\Users\Public |
%SystemDrive% |
C: |
%SystemRoot% |
C:\Windows |
%Temp% |
C:\Users\{username}\AppData\Local\Temp |
%Tmp% |
C:\Users\{username}\AppData\Local\Temp |
%UserProfile% |
C:\Users\{username} |
%WinDir% |
C:\Windows |
Reboot GPU driver¶
Win+Ctrl+Shift+B
Win + Ctrl + Shift + B
Reset file ownership¶
REM Make local administrators group owner.
takeown /F C:\files /R /A /D Y
REM Reset ACLs to defaults.
icacls C:\files /reset /T /C /L /Q
Startup programs¶
%AppData%\Microsoft\Windows\Start Menu\Programs\Startup
Stop WmmemWSL process¶
wsl --shutdown
UEFI BIOS¶
shutdown /r /fw /f /t 0
URL file¶
email.url
[InternetShortcut]
URL=mailto:test@example.org
example.url
[InternetShortcut]
URL=https://example.org
winget¶
:: Update all packages
winget upgrade --all
:: Export packages
winget export --output backup.json
:: Import packages
winget import --input backup.json