Skip to content

Instantly share code, notes, and snippets.

View b4nst's full-sized avatar
📺

Banst b4nst

📺
View GitHub Profile
@b4nst
b4nst / kubectl-cheat.md
Last active June 16, 2022 17:44
[Kubectl cheat sheet] Kubectl useful stuff #docker #kubectl #kubernetes
@b4nst
b4nst / Install Windows on MacPro 5,1 on physical drive through Virtualbox.md
Last active October 2, 2024 01:20
Install windows on MacPro 5,1 without cd nor usb drive

Install Windows on MacPro 5,1 on physical drive through Virtualbox

Prerequires

  • 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
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),