Skip to content

Instantly share code, notes, and snippets.

@alexander-danilenko
Last active March 2, 2025 08:27

Revisions

  1. alexander-danilenko revised this gist Jan 4, 2025. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -329,7 +329,7 @@ $packages=@(
    Enable WSL (Windows Subsystem Linux) and set WSL2 as the default.

    ```powershell
    wsl --install
    wsl --install --distribution Debian
    wsl --set-default-version 2
    ```

  2. alexander-danilenko revised this gist Dec 22, 2024. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -150,6 +150,7 @@ ForEach ($item in @(
    ###< Media
    ###> Runtimes, language interpriters
    # "Google.PlatformTools" # Adds adb and fastboot
    "Microsoft.DotNet.DesktopRuntime.3_1"
    "Microsoft.DotNet.DesktopRuntime.5"
    "Microsoft.DotNet.DesktopRuntime.6"
  3. alexander-danilenko revised this gist Nov 23, 2023. 1 changed file with 8 additions and 4 deletions.
    12 changes: 8 additions & 4 deletions windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -75,7 +75,8 @@ $drives = @{

    ## WinGet (Windows Package Manager CLI)

    > ⚠️ Note: `winget` app is not available by default. [**App Installer**](https://www.microsoft.com/en-us/p/app-installer/9nblggh4nns1) app needs to be installed first (using Microsoft Store).
    > [!NOTE]
    > `winget` app is not available by default. [**App Installer**](https://www.microsoft.com/en-us/p/app-installer/9nblggh4nns1) app needs to be installed first (using Microsoft Store).
    Search for packages

    @@ -282,7 +283,8 @@ Install node:
    winget install --id OpenJS.NodeJS.LTS
    ```

    > ⚠️ NOTE: Before installing npm packages you **need to restart terminal**!
    > [!IMPORTANT]
    > After installing node.js **need to restart terminal** before installing npm packages.
    NPM global packages:

    @@ -335,7 +337,8 @@ List all available to install distros:
    wsl --list --online
    ```

    > ⚠️ NOTE: After WSL installation and before installing any distro you **need to reboot**!
    > [!IMPORTANT]
    > After WSL installation and before installing any distro you **need to reboot**!
    Install distros:
    ```powershell
    @@ -357,7 +360,8 @@ wsl --distribution Ubuntu-20.04 --exec ip route list default

    ## Docksal (WSL2)

    > ⚠️ Make sure you have WSLv2 engine used for Ubuntu distro by running `wsl --list --verbose`. `VERSION` should be `2`.
    > [!IMPORTANT]
    > Make sure you have WSLv2 engine used for Ubuntu distro by running `wsl --list --verbose`. `VERSION` should be `2`.
    Run **Windows Terminal**, open **Ubuntu** terminal tab.

  4. alexander-danilenko revised this gist Nov 23, 2023. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,8 @@

    <h1>Windows 11 Cheatsheet</h1>

    > ⚠️ All scripts in this document should be executed in **Windows Powershell as Administrator**.
    > [!NOTE]
    > All scripts in this document should be executed in **Windows Powershell as Administrator**.
    - [Windows Defender ignore list](#windows-defender-ignore-list)
    - [Powershell](#powershell)
  5. alexander-danilenko revised this gist Nov 23, 2023. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -21,9 +21,11 @@

    https://github.com/massgravel/Microsoft-Activation-Scripts

    ## Free HEVC codecs
    ## Codecs

    Open in browser: `ms-windows-store://pdp/?ProductId=9n4wgh0z6vhq`
    Open in browser:
    - HEVC: `ms-windows-store://pdp/?ProductId=9n4wgh0z6vhq`
    - AV1: `ms-windows-store://pdp/?ProductId=9MVZQVXJBQ9V`

    ## Windows Defender ignore list

  6. alexander-danilenko revised this gist Nov 23, 2023. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -150,6 +150,7 @@ ForEach ($item in @(
    "Microsoft.DotNet.DesktopRuntime.5"
    "Microsoft.DotNet.DesktopRuntime.6"
    "Microsoft.DotNet.DesktopRuntime.7"
    "Microsoft.DotNet.DesktopRuntime.8"
    "Microsoft.VCRedist.2005.x64"
    "Microsoft.VCRedist.2005.x86"
    "Microsoft.VCRedist.2008.x64"
  7. alexander-danilenko revised this gist Sep 22, 2023. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -49,6 +49,12 @@ Allow to run PS scripts:
    Set-ExecutionPolicy RemoteSigned
    ```

    ## Disable hibernation

    ```powershell
    powercfg.exe /hibernate off
    ```

    ## Mount network shares

    ```powershell
  8. alexander-danilenko revised this gist Sep 14, 2023. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -17,6 +17,10 @@
    - [Edit hosts](#edit-hosts)
    - [List of `ENVIRONMENT` variables](#list-of-environment-variables)

    ## Activation

    https://github.com/massgravel/Microsoft-Activation-Scripts

    ## Free HEVC codecs

    Open in browser: `ms-windows-store://pdp/?ProductId=9n4wgh0z6vhq`
  9. alexander-danilenko revised this gist Aug 27, 2023. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -112,7 +112,7 @@ ForEach ($item in @(
    "CrystalDewWorld.CrystalDiskInfo"
    "CrystalDewWorld.CrystalDiskMark"
    "CrystalRich.LockHunter"
    "Implbits.HashTab"
    "namazso.OpenHashTab"
    "REALiX.HWiNFO" # Hardware Analysis, Monitoring and Reporting
    "Rufus.Rufus"
    "Synology.DriveClient"
    @@ -182,7 +182,7 @@ ForEach ($item in @(
    ###> Office
    #"TheDocumentFoundation.LibreOffice"
    "ONLYOFFICE.DesktopEditors"
    "TrackerSoftware.PDF-XChangeEditor"
    "TrackerSoftware.PDF-XChangePRO"
    ###< Office
    )) { winget install --id $item --accept-source-agreements }
    ```
  10. alexander-danilenko revised this gist Aug 26, 2023. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -96,12 +96,12 @@ ForEach ($item in @(
    "Mozilla.Firefox"
    "Notion.Notion"
    "qBittorrent.qBittorrent"
    #"PicoTorrent.PicoTorrent"
    "ProtonTechnologies.ProtonVPN"
    "SlackTechnologies.Slack"
    "Telegram.TelegramDesktop"
    #"TorProject.TorBrowser"
    "Viber.Viber"
    "WireGuard.WireGuard"
    #"TorProject.TorBrowser"
    #"WireGuard.WireGuard"
    #"Cloudflare.Warp" # CloudFlare's VPN
    #"tailscale.tailscale"
    #"Transmission.Transmission"
  11. alexander-danilenko revised this gist Nov 18, 2022. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -136,10 +136,10 @@ ForEach ($item in @(
    ###< Media
    ###> Runtimes, language interpriters
    "Microsoft.DotNet.Runtime.3_1"
    "Microsoft.DotNet.Runtime.5"
    "Microsoft.DotNet.Runtime.6"
    "Microsoft.DotNet.Runtime.7"
    "Microsoft.DotNet.DesktopRuntime.3_1"
    "Microsoft.DotNet.DesktopRuntime.5"
    "Microsoft.DotNet.DesktopRuntime.6"
    "Microsoft.DotNet.DesktopRuntime.7"
    "Microsoft.VCRedist.2005.x64"
    "Microsoft.VCRedist.2005.x86"
    "Microsoft.VCRedist.2008.x64"
  12. alexander-danilenko revised this gist Nov 15, 2022. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -144,17 +144,17 @@ ForEach ($item in @(
    "Microsoft.VCRedist.2005.x86"
    "Microsoft.VCRedist.2008.x64"
    "Microsoft.VCRedist.2008.x86"
    "Microsoft.VCRedist.2013.x86"
    "Microsoft.VCRedist.2013.x64"
    "Microsoft.VCRedist.2010.x64"
    "Microsoft.VCRedist.2010.x86"
    "Microsoft.VCRedist.2012.x64"
    "Microsoft.VCRedist.2012.x86"
    "Microsoft.VCRedist.2013.x64"
    "Microsoft.VCRedist.2013.x86"
    "Microsoft.VCRedist.2015+.x64"
    "Microsoft.VCRedist.2015+.x86"
    "Microsoft.VCRedist.2010.x64"
    "Microsoft.VCRedist.2010.x86"
    "Microsoft.VCRedist.2019.arm64"
    "Microsoft.VCRedist.2022.arm64"
    #"Microsoft.VCRedist.2019.arm64"
    #"Microsoft.VCRedist.2022.arm64"
    "OpenJS.NodeJS.LTS"
    "Python.Python.3"
    "Microsoft.OpenJDK.11" # LTS
  13. alexander-danilenko revised this gist Nov 15, 2022. 1 changed file with 20 additions and 3 deletions.
    23 changes: 20 additions & 3 deletions windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -136,11 +136,28 @@ ForEach ($item in @(
    ###< Media
    ###> Runtimes, language interpriters
    "Microsoft.OpenJDK.11" # LTS
    "Microsoft.VC++2015-2019Redist-x64"
    "Microsoft.VC++2015-2019Redist-x86"
    "Microsoft.DotNet.Runtime.3_1"
    "Microsoft.DotNet.Runtime.5"
    "Microsoft.DotNet.Runtime.6"
    "Microsoft.DotNet.Runtime.7"
    "Microsoft.VCRedist.2005.x64"
    "Microsoft.VCRedist.2005.x86"
    "Microsoft.VCRedist.2008.x64"
    "Microsoft.VCRedist.2008.x86"
    "Microsoft.VCRedist.2013.x86"
    "Microsoft.VCRedist.2013.x64"
    "Microsoft.VCRedist.2012.x64"
    "Microsoft.VCRedist.2012.x86"
    "Microsoft.VCRedist.2015+.x64"
    "Microsoft.VCRedist.2015+.x86"
    "Microsoft.VCRedist.2010.x64"
    "Microsoft.VCRedist.2010.x86"
    "Microsoft.VCRedist.2019.arm64"
    "Microsoft.VCRedist.2022.arm64"
    "OpenJS.NodeJS.LTS"
    "Python.Python.3"
    "Microsoft.OpenJDK.11" # LTS
    #"AdoptOpenJDK.OpenJDK.11" # LTS
    ###< Runtimes, language interpriters
  14. alexander-danilenko revised this gist Oct 30, 2022. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -17,6 +17,10 @@
    - [Edit hosts](#edit-hosts)
    - [List of `ENVIRONMENT` variables](#list-of-environment-variables)

    ## Free HEVC codecs

    Open in browser: `ms-windows-store://pdp/?ProductId=9n4wgh0z6vhq`

    ## Windows Defender ignore list

    ```powershell
  15. alexander-danilenko revised this gist Oct 16, 2022. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -91,8 +91,8 @@ ForEach ($item in @(
    "Google.Chrome"
    "Mozilla.Firefox"
    "Notion.Notion"
    #"qBittorrent.qBittorrent"
    "PicoTorrent.PicoTorrent"
    "qBittorrent.qBittorrent"
    #"PicoTorrent.PicoTorrent"
    "SlackTechnologies.Slack"
    "Telegram.TelegramDesktop"
    #"TorProject.TorBrowser"
  16. alexander-danilenko revised this gist Oct 15, 2022. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -91,7 +91,8 @@ ForEach ($item in @(
    "Google.Chrome"
    "Mozilla.Firefox"
    "Notion.Notion"
    "qBittorrent.qBittorrent"
    #"qBittorrent.qBittorrent"
    "PicoTorrent.PicoTorrent"
    "SlackTechnologies.Slack"
    "Telegram.TelegramDesktop"
    #"TorProject.TorBrowser"
  17. alexander-danilenko revised this gist Aug 17, 2022. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -158,7 +158,8 @@ ForEach ($item in @(
    ###< Games
    ###> Office
    "LibreOffice.LibreOffice"
    #"TheDocumentFoundation.LibreOffice"
    "ONLYOFFICE.DesktopEditors"
    "TrackerSoftware.PDF-XChangeEditor"
    ###< Office
    )) { winget install --id $item --accept-source-agreements }
  18. alexander-danilenko revised this gist Apr 18, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -32,7 +32,7 @@ ForEach ($item in @(
    Update help for powershell:

    ```powershell
    Update-Help
    Update-Help -ErrorAction Ignore
    ```

    Allow to run PS scripts:
  19. alexander-danilenko revised this gist Apr 18, 2022. 1 changed file with 15 additions and 2 deletions.
    17 changes: 15 additions & 2 deletions windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -353,10 +353,23 @@ ip route list default

    Add all projects to windows hosts using WSL distro IP.

    ## Backup appdata
    ## Backup

    ```powershell
    Compress-Archive $env:APPDATA -CompressionLevel Fastest -DestinationPath "$(Get-Date -Format "yyyy-MM-dd_HH-mm")-APPDATA.zip"
    $backupDate=$(Get-Date -Format 'yyyyMMdd_HHmm')
    $dirs=@{
    $env:USERNAME = $env:USERPROFILE
    APPDATA = $env:APPDATA
    }; foreach ($key in $dirs.GetEnumerator()) {
    $backupDir=$($key.Value)
    $backupType=$($key.Name)
    $archiveName="${backupDate}_${backupType}.zip"
    Write-Host -ForegroundColor Yellow "Archiving '$backupDir' to '$archiveName'..."
    Compress-Archive $backupDir -Force -CompressionLevel NoCompression -DestinationPath $archiveName
    Write-Host -ForegroundColor Green "Archive created: $archiveName"
    }
    pause
    ```

    ## Edit hosts
  20. alexander-danilenko revised this gist Apr 18, 2022. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -29,9 +29,15 @@ ForEach ($item in @(

    ## Powershell

    Allow to run PS scripts:
    Update help for powershell:

    ```powershell
    Update-Help
    ```

    Allow to run PS scripts:

    ```powershell
    Set-ExecutionPolicy RemoteSigned
    ```

  21. alexander-danilenko revised this gist Apr 18, 2022. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -347,6 +347,12 @@ ip route list default

    Add all projects to windows hosts using WSL distro IP.

    ## Backup appdata

    ```powershell
    Compress-Archive $env:APPDATA -CompressionLevel Fastest -DestinationPath "$(Get-Date -Format "yyyy-MM-dd_HH-mm")-APPDATA.zip"
    ```

    ## Edit hosts

    ```powershell
  22. alexander-danilenko revised this gist Apr 17, 2022. 1 changed file with 15 additions and 15 deletions.
    30 changes: 15 additions & 15 deletions windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -76,22 +76,24 @@ Install packages

    ```powershell
    ForEach ($item in @(
    "SteelSeries.GG"
    "Nvidia.GeForceExperience"
    #"SteelSeries.GG"
    #"Nvidia.GeForceExperience"
    ###> Internet
    "Cloudflare.Warp" # CloudFlare's VPN
    "AgileBits.1Password"
    "Discord.Discord"
    "Google.Chrome"
    "Mozilla.Firefox"
    "Notion.Notion"
    "qBittorrent.qBittorrent"
    "SlackTechnologies.Slack"
    "Telegram.TelegramDesktop"
    #"Transmission.Transmission"
    #"TorProject.TorBrowser"
    "Viber.Viber"
    "tailscale.tailscale"
    "TorProject.TorBrowser"
    "qBittorrent.qBittorrent"
    "WireGuard.WireGuard"
    #"Cloudflare.Warp" # CloudFlare's VPN
    #"tailscale.tailscale"
    #"Transmission.Transmission"
    ###< Internet
    ###> System
    @@ -123,26 +125,24 @@ ForEach ($item in @(
    ###< Media
    ###> Runtimes, language interpriters
    #"AdoptOpenJDK.OpenJDK.11" # LTS
    "Microsoft.OpenJDK.11" # LTS
    "Microsoft.VC++2015-2019Redist-x64"
    "Microsoft.VC++2015-2019Redist-x86"
    "OpenJS.NodeJS.LTS"
    "Python.Python.3"
    #"AdoptOpenJDK.OpenJDK.11" # LTS
    ###< Runtimes, language interpriters
    ###> Developer tools, editors, IDEs
    "Amazon.AWSCLI"
    "Amazon.SAM-CLI"
    "Git.Git"
    "GitHub.cli"
    "JetBrains.Toolbox"
    "Microsoft.VisualStudioCode"
    "OpenJS.NodeJS.LTS"
    "Python.Python.3"
    "SublimeHQ.SublimeMerge"
    "SublimeHQ.SublimeText.4"
    #"Amazon.AWSCLI"
    #"Amazon.SAM-CLI"
    #"Docker.DockerDesktop"
    #"GitHub.cli"
    #"SublimeHQ.SublimeMerge"
    #"SublimeHQ.SublimeText.4"
    ###< Developer tools, editors, IDEs
    ###> Games
  23. alexander-danilenko revised this gist Apr 2, 2022. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -90,6 +90,7 @@ ForEach ($item in @(
    #"Transmission.Transmission"
    "Viber.Viber"
    "tailscale.tailscale"
    "TorProject.TorBrowser"
    "qBittorrent.qBittorrent"
    ###< Internet
  24. alexander-danilenko revised this gist Jan 25, 2022. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -87,10 +87,10 @@ ForEach ($item in @(
    "Notion.Notion"
    "SlackTechnologies.Slack"
    "Telegram.TelegramDesktop"
    "Transmission.Transmission"
    #"Transmission.Transmission"
    "Viber.Viber"
    "tailscale.tailscale"
    #"qBittorrent.qBittorrent"
    "qBittorrent.qBittorrent"
    ###< Internet
    ###> System
  25. alexander-danilenko revised this gist Dec 27, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -22,8 +22,8 @@
    ```powershell
    ForEach ($item in @(
    "${env:WINDIR}\System32\drivers\etc\hosts"
    "D:\Install"
    "D:\Apps"
    "E:\Install"
    )) { Add-MpPreference -ExclusionPath (Convert-Path -Path $item) }
    ```

  26. alexander-danilenko revised this gist Dec 27, 2021. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -85,11 +85,12 @@ ForEach ($item in @(
    "Google.Chrome"
    "Mozilla.Firefox"
    "Notion.Notion"
    "qBittorrent.qBittorrent"
    "SlackTechnologies.Slack"
    "Telegram.TelegramDesktop"
    "Transmission.Transmission"
    "Viber.Viber"
    "tailscale.tailscale"
    #"qBittorrent.qBittorrent"
    ###< Internet
    ###> System
  27. alexander-danilenko revised this gist Dec 26, 2021. 1 changed file with 4 additions and 12 deletions.
    16 changes: 4 additions & 12 deletions windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -21,22 +21,14 @@

    ```powershell
    ForEach ($item in @(
    "${env:WINDIR}\System32\drivers\etc\hosts"
    "D:\Install"
    "D:\Apps"
    )) {
    Add-MpPreference -ExclusionPath (Convert-Path -Path $item)
    }
    "${env:WINDIR}\System32\drivers\etc\hosts"
    "D:\Install"
    "D:\Apps"
    )) { Add-MpPreference -ExclusionPath (Convert-Path -Path $item) }
    ```

    ## Powershell

    Update help for all Powershell commands:

    ```powershell
    Update-Help
    ```

    Allow to run PS scripts:

    ```
  28. alexander-danilenko revised this gist Dec 26, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -60,7 +60,7 @@ $drives = @{

    ## WinGet (Windows Package Manager CLI)

    > ⚠️ Note: `winget` app is not available by default. [**App Installer**](https://www.microsoft.com/en-us/p/app-installer/9nblggh4nns1) app needs is installed using **Microsoft Store** and `winget` command will become available.
    > ⚠️ Note: `winget` app is not available by default. [**App Installer**](https://www.microsoft.com/en-us/p/app-installer/9nblggh4nns1) app needs to be installed first (using Microsoft Store).
    Search for packages

  29. alexander-danilenko revised this gist Dec 26, 2021. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -60,7 +60,7 @@ $drives = @{

    ## WinGet (Windows Package Manager CLI)

    > Note: `winget` app will become available only after retrieving updates in **Windows Update** and **Microsoft Store**!.
    > ⚠️ Note: `winget` app is not available by default. [**App Installer**](https://www.microsoft.com/en-us/p/app-installer/9nblggh4nns1) app needs is installed using **Microsoft Store** and `winget` command will become available.
    Search for packages

    @@ -245,7 +245,7 @@ Install node:
    winget install --id OpenJS.NodeJS.LTS
    ```

    > NOTE: Before installing npm packages you **need to restart terminal**!
    > ⚠️ NOTE: Before installing npm packages you **need to restart terminal**!
    NPM global packages:

    @@ -298,7 +298,7 @@ List all available to install distros:
    wsl --list --online
    ```

    > NOTE: After WSL installation and before installing any distro you **need to reboot**!
    > ⚠️ NOTE: After WSL installation and before installing any distro you **need to reboot**!
    Install distros:
    ```powershell
    @@ -320,7 +320,7 @@ wsl --distribution Ubuntu-20.04 --exec ip route list default

    ## Docksal (WSL2)

    > Make sure you have WSLv2 engine used for Ubuntu distro by running `wsl --list --verbose`. `VERSION` should be `2`.
    > ⚠️ Make sure you have WSLv2 engine used for Ubuntu distro by running `wsl --list --verbose`. `VERSION` should be `2`.
    Run **Windows Terminal**, open **Ubuntu** terminal tab.

  30. alexander-danilenko revised this gist Dec 26, 2021. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions windows-11-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -188,6 +188,12 @@ Install using winget
    winget install Microsoft.VisualStudioCode
    ```

    Use config from my dotfiles repo:

    ```powershell
    Invoke-WebRequest https://raw.githubusercontent.com/alexander-danilenko/dotfiles/main/.config/Code/User/settings.json -OutFile "${env:APPDATA}\Code\User\settings.json"
    ```

    Following command installs `code` extensions by extension id:

    ```powershell