Skip to content

Instantly share code, notes, and snippets.

View sysraccoon's full-sized avatar

sysraccoon

View GitHub Profile

NixOS Binary Cache Proxy

nixos-cache-proxy.cofob.dev is a simple reverse proxy to cache.nixos.org, running over the Cloudflare network and utilizing its cache.

It is intended for use if you:

  1. Do not have access to cache.nixos.org (e.g., your government has blocked it).
  2. You experience low speed on cache.nixos.org.

How to Use It

@mikejoh
mikejoh / kvm-on-ubuntu.md
Last active February 24, 2026 14:09
KVM on Ubuntu 20.04 using (Ubuntu) cloud images

Running virtual machines on KVM and Ubuntu 20.04 using (Ubuntu) cloud images

  1. Check: egrep -c '(vmx|svm)' /proc/cpuinfo
  2. Check: sudo kvm-ok
  3. Install:
sudo apt update
sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager cloud-image-utils
  1. Add yourself to the libvirt and kvm groups:
@plembo
plembo / addbr0ubunmcli.md
Last active February 8, 2026 22:11
Add br0 to Ubuntu desktop using nmcli

Add a bridge interface to Ubuntu desktop using nmcli

Had to do this for some advanced networking with KVM, and couldn't figure out how to do it using the Nework Manager gui. Did find an article later that showed how to do it with nmtui, but it's so much easier to record what you did when using the cli.

In the examples below "eth0" is the name of my physical interface. By default on Ubuntu and most distributions that will almost certainly be different, for example: "eno1", "ens1", or "enp2s0".

To see what everything looks like before starting: