This file contains hidden or 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
#!/bin/bash | |
# Create a git branch with a single commit that contains nothing. | |
if [ "${#}" != 1 ]; then | |
echo "Usage: ${0} [branch name]" | |
exit 1 | |
fi | |
tree="$(: | git mktree)" |
This file contains hidden or 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
Description="Ethernet Connection" | |
Interface=br0 | |
Connection=bridge | |
BindsToInterfaces=(enp6s0) | |
IP=dhcp | |
## Ignore (R)STP and immediately activate the bridge | |
SkipForwardingDelay=yes |
This file contains hidden or 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
qemu-system-x86_64 \ | |
-enable-kvm -M q35 -localtime -usb -name Windows `# General options` \ | |
-monitor /dev/tty -nographic -vga none -serial none `# Graphic options` \ | |
-cpu host,kvm=off -smp 1,sockets=1,cores=1,threads=1 `# CPU Options` \ | |
-m 1024 `# Memory` \ | |
-bios /usr/share/qemu/bios.bin `# BIOS` \ | |
-device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 `# PCIe Bus` \ | |
-device vfio-pci,host=02:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on `# Graphics card` \ | |
-device vfio-pci,host=02:00.1,bus=root.1,addr=00.1 `# Graphics card sound` \ | |
-soundhw hda `# Sound` \ |
This file contains hidden or 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
#!/bin/bash | |
xhost local:root > /dev/null | |
if ! [ -d /sys/fs/cgroup/cpuset/windows ]; then | |
sudo cgcreate -t $USER:users -a $USER:users -g cpuset:windows | |
fi | |
/bin/echo "2-7" > /sys/fs/cgroup/cpuset/windows/cpuset.cpus | |
/bin/echo "0" > /sys/fs/cgroup/cpuset/windows/cpuset.mems |