Skip to content

Instantly share code, notes, and snippets.

@unknowndevQwQ
unknowndevQwQ / qemu-kvm_ga
Created March 13, 2020 07:36
BandwagonHost KiwiVM Guest Agent Files backup
#!/bin/bash
# This daemon is required for full functionality of KiwiVM. However it may be safely
# removed if full control panel functionality not needed.
# Removal of this daemon may affect the ability to gracefully shut down this VPS
# from within KiwiVM (due to some kernels not fully supporting acpi).
SERIALSTDIO=/dev/virtio-ports/kiwicomm.port0
SERIALSTDERR=/dev/virtio-ports/kiwicomm.port1
if [ ! -L "$SERIALSTDIO" ] || [ ! -L "$SERIALSTDERR" ]; then
echo "Serial device not found, aborting."
@deepfire
deepfire / nix-builds
Created August 28, 2016 16:19
nix-builds: suspend/resume/observe the nix-build demon activity
#!/bin/sh
mapcflip () {
local xs=$1; shift
local x
for x in $(echo $xs | sed 's/,/ /g')
do
$(echo $@ | sed s/%/$x/)
@jdnavarro
jdnavarro / fedora-nspawn.markdown
Created January 27, 2016 14:19
Bootstrap systemd-nspawn Fedora container from an Arch Linux host

Install yum from AUR

$ yaourt -Sy yum

Add bootstrap repos to /etc/yum.d/boot.repo

[fedora]
name=fedora
baseurl=https://archives.fedoraproject.org/pub/fedora/linux/releases/23/Everything/x86_64/os/
enabled=1