Skip to content

Instantly share code, notes, and snippets.

View bisand's full-sized avatar

André Biseth bisand

View GitHub Profile
@machuu
machuu / WSL2_VPN_Workaround_Instructions.md
Last active November 16, 2024 13:12
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:

@bisand
bisand / raspi-timemachine.sh
Last active January 4, 2018 21:46
A script for installing Apple Time Machine server on a Raspberry Pi
#!/bin/bash
# Inspired by an article from:
# https://www.howtogeek.com/276468/how-to-use-a-raspberry-pi-as-a-networked-time-machine-drive-for-your-mac/
#
# 1. The first thing you need to do is prepare the external drive to work with Time Machine. Plug the drive into your Mac,
# then launch Disk Utility. Select your external drive, then click the “Erase” button.
# You’re going to want to format the drive as “Mac OS Extended”, also known as HFS+.
#
# 2. Next, we’re going to want to ensure that your Raspberry Pi, and every device, will have permission to control the drive.
# Head to the Finder, then right-click the drive in the sidebar. Click “Get Info”.