- SIP disabled. I don't have a native GPU so no boot screen, but I just hold CMD+R 10s after chime sound and wait until I see the recovery screen.
- A drive where windows will be written (avoid partitioning to keep things clean). Mine is plugged into the optical drive bay.
- Bootchamp 1.7. Bootchamp is discontinued but works fine for me. Let me know if you have something better.
- Virtual box
- A Windows 10 iso img. I got a 10 pro edition but the home should be fine too
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ( | |
"net" | |
"net/netip" | |
) | |
func PrefixToIPNet(p netip.Prefix) net.IPNet { | |
ip := p.Masked().Addr().AsSlice() | |
return net.IPNet{ | |
IP: ip, | |
Mask: net.CIDRMask(p.Bits(), len(ip)*8), |