Skip to content

Instantly share code, notes, and snippets.

View bmullan's full-sized avatar

brian mullan bmullan

  • Cisco Systems, McDonnell Douglas, Martin Marrieta Hughes Space & Communications
View GitHub Profile
@joedborg
joedborg / launch_vm.sh
Last active January 23, 2025 07:07
LXD Ubuntu VM launch and disk resize
#!/bin/env bash
set -e
readonly VM="banana"
readonly CPU="8"
readonly MEM="8GB"
readonly DSK="120GB"
lxc init images:ubuntu/focal ${VM} -p default -p vm --vm
@dinomite
dinomite / lxc-backup.sh
Last active November 2, 2024 03:22
Simple script to backup LXC containers
#!/usr/bin/env bash
set -ex
BACKUP_DIR=/path/to/where/backups/should/live
HOSTS=($(lxc list -c n --format csv))
for HOST in "${HOSTS[@]}"
do
BACKUP_NAME=${HOST}-$(date +"%Y-%m-%d")
#!/bin/bash
modprobe ipv6
modprobe udp_tunnel
modprobe ip6_udp_tunnel
ip link add dev wg0 type wireguard
wg setconf wg0 /etc/wireguard/config
wg showconf wg0
brctl addbr internet
brctl stp internet on
ip link set up dev wg0