Skip to content

Instantly share code, notes, and snippets.

View DeanCording's full-sized avatar

Dean Cording DeanCording

  • Queensland, Australia
  • 07:34 (UTC +10:00)
View GitHub Profile
@onetransistor
onetransistor / pulseview.sh
Last active March 20, 2024 14:39
Script to compile and install PulseView on Ubuntu Linux
#!/bin/bash
# Script that will download, compile and install PulseView and its dependencies
# For more information visit:
# https://www.onetransistor.eu/2017/11/script-to-compile-and-install-pulseview.html
set -e
echo "PulseView: Download, build and install"
echo "Installing dependencies"
@cyberang3l
cyberang3l / Libvirt-Start-VMs-In-Order-Instructions.md
Last active February 23, 2024 13:41
Necessary scripts and procedure to start libvirt VMs in a provided order, with an given delay before starting each subsequent VM.
  1. Ensure that your VMs can shutdown gracefully when the power-button is pressed.

  2. Place the file vm-boot-order.py in /opt directory

  3. Make it executable: chmod +x /opt/vm-boot-order.py

  4. Check that the script starts and shuts down your VMs as expected. The script can be executed as follows:

     /opt/vm-boot-order.py start
     /opt/vm-boot-order.py stop
     /opt/vm-boot-order.py status
    
  5. Make a systemd service to execute the script when booting or shutting down the hypervisor: