Skip to content

Instantly share code, notes, and snippets.

View markstachowski's full-sized avatar

Mark Stachowski markstachowski

View GitHub Profile
@moxwel
moxwel / remove_bloatware_windows_list.md
Last active September 18, 2025 17:55
Remove specific apps from Windows
@naman-pasari
naman-pasari / pythonSetupOnWSL.md
Last active July 9, 2023 11:30 — forked from raunak-r/pythonSetupOnWSL.md
Python Setup for Backend Development in Windows using WSL
@MartinEesmaa
MartinEesmaa / youtube_formats.md
Last active May 11, 2026 11:08 — forked from AgentOak/youtube_formats.md
Youtube Format IDs

Note: This is all almost full YouTube ID informations. Original owner goes to AgentOak, modified version by Martin Eesmaa.

See the credits and also special thanks in below.

Before this gist has been forked, AgentOak made original gist on November 13 2019 and it was last updated on May 5 2021.

From now on, this forked gist is maintained by Martin Eesmaa since 17 September 2022. I joined to yt-dlp Discord server on 3rd April 2026 with my Discord username: martineesmaa.

Last updated: 03 April 2026

GitExercises WriteUp

This is a write-up of the GitExercises upto level "fixed-old-typo".

master

Problem Statement

The first exercise is to push a commit that is created when you run the git start command.

Just try git verify after you have initialized the exercises and be proud of passing the first one :-)

@machuu
machuu / WSL2_VPN_Workaround_Instructions.md
Last active May 5, 2026 16:15
Workaround for WSL2 network broken on VPN

Overview

Internet connection and DNS routing are broken from WSL2 instances, when some VPNs are active.

The root cause seems to be that WSL2 and the VPN use the same IP address block, and the VPN routing clobbers WSL2's network routing.

This problem is tracked in multiple microsoft/WSL issues including, but not limited to:

@hucsmn
hucsmn / wsl2.md
Last active July 5, 2024 19:20
A collection of WSL2 hacks

Notes on configuring ArchWSL on WSL2.

Basic setup

Edit %UserProfile%\.wslconfig:

[wsl2]
swap=0
localhostForwarding=true
@BusterNeece
BusterNeece / 00-setup.md
Last active December 5, 2024 18:55
My WSL2 Ubuntu 20.04 Environment

My local Ubuntu 20.04 WSL2 setup.

Enable and Install WSL2

From Windows, as admin:

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
@Velocet
Velocet / Unlock-PowerCfg.ps1
Last active May 10, 2026 13:00
Unlock/Unhide all Power Plan Settings/Options on Windows 10/11
#Requires -RunAsAdministrator
# Unlock-PowerCfg - v22.05.11
# Disable "Connected Standby"
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Power' -Name 'CSEnabled' -Value 0 -Force
# Get Power Settings entries and add/set 'Attributes' to 2 to unhide
$PowerCfg = (Get-ChildItem 'HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerSettings' -Recurse).Name -notmatch '\bDefaultPowerSchemeValues|(\\[0-9]|\b255)$'
foreach ($item in $PowerCfg) { Set-ItemProperty -Path $item.Replace('HKEY_LOCAL_MACHINE','HKLM:') -Name 'Attributes' -Value 2 -Force }
@djfdyuruiry
djfdyuruiry / README.md
Last active October 8, 2024 04:54
WSL 2 - Enabling systemd

Enable systemd in WSL 2

NOTE: If you have Windows 11 there is now an official way to do this in WSL 2, use it if possible - see MS post here (WINDOWS 11 ONLY)

This guide will enable systemd to run as normal under WSL 2. This will enable services like microk8s, docker and many more to just work during a WSL session. Note: this was tested on Windows 10 Build 2004, running Ubuntu 20.04 LTS in WSL 2.

  • To enable systemd under WSL we require a tool called systemd-genie

  • Copy the contents of install-sg.sh to a new file /tmp/install-sg.sh:

@antoniordo
antoniordo / fedora-developer-configure.sh
Created October 18, 2019 03:37
Configure fedora for Java development
#!/usr/bin/env bash
set -e
#==========================================================================================
# Configurations
#==========================================================================================
# Set hostname
PC_HOSTNAME=""
# Disable Wayland to use xorg as dafult
DISABLE_WAYLAND=false