Skip to content

Instantly share code, notes, and snippets.

@DavidAce
DavidAce / nvidia-tdp.service
Last active December 27, 2025 09:25
Nvidia power limit at boot
[Unit]
Description=Set NVIDIA power limit above default
[Service]
Type=oneshot
ExecStartPre=/usr/bin/nvidia-smi -pm 1
ExecStart=/usr/bin/nvidia-smi -pl 275
@machuu
machuu / WSL2_VPN_Workaround_Instructions.md
Last active December 15, 2025 14:20
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: