Skip to content

Instantly share code, notes, and snippets.

View MattPorto's full-sized avatar
😜
"Work like a captain, play like a pirate!"

Matheus Porto MattPorto

😜
"Work like a captain, play like a pirate!"
View GitHub Profile
@4wk-
4wk- / README.md
Last active November 10, 2024 17:26
Clean uninstall then reinstall of WSL on Windows 10, with systemD support

Uninstall then reinstall WSL on Windows 10 (clean way)

Background

I've been using wsl (version 2) with genie mod for years without issue, but one day, Windows 10 finally catch up on wsl Windows 11 features and gives us a way to use systemD natively.

I wanted to use the new "right way" to enable systemD on Windows Subsystem for Linux (without genie), and I also had a (probably related) infinite Windows RemoteApp error poping in.

Fixing it

A - Uninstall wsl and related stuff

  1. In powershell (as admin)
@rponte
rponte / gist:1051135
Last active March 10, 2023 00:08
A test is not a unit test if
A test is not an unit test if:
* it talks to the database
* it communicates across the network
* it touches the file system
* it can’t run at the same time as any of your other unit tests
* you have to do special things to your environment (such as editing config files) to run it
Tests that do these things aren’t bad. Often they are worth writing, and they can be written in a unit test harness. However, it is important to keep them separate from true unit tests so that we can run the unit tests quickly whenever we make changes.
--
by Michael Feathers