Skip to content

Instantly share code, notes, and snippets.

View LewisGaul's full-sized avatar
🪲

Lewis Gaul LewisGaul

🪲
View GitHub Profile
@hit9
hit9 / colored_logging.py
Created May 23, 2013 11:44
colored python logging. And add a level 'success'
class Color(object):
"""
utility to return ansi colored text.
"""
colors = {
'black': 30,
'red': 31,
'green': 32,
'yellow': 33,
@machuu
machuu / WSL2_VPN_Workaround_Instructions.md
Last active July 23, 2024 10:31
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: