Skip to content

Instantly share code, notes, and snippets.

View dosaboy's full-sized avatar

Edward Hope-Morley dosaboy

View GitHub Profile
#!/bin/bash -eux
apt purge bpfcc-tools libbpfcc python3-bpfcc
wget https://github.com/iovisor/bcc/releases/download/v0.25.0/bcc-src-with-submodule.tar.gz
tar xf bcc-src-with-submodule.tar.gz
cd bcc/
apt install -y python-is-python3
apt install -y bison build-essential cmake flex git libedit-dev libllvm11 llvm-11-dev libclang-11-dev zlib1g-dev libelf-dev libfl-dev python3-distutils
apt install -y checkinstall
mkdir build
cd build/
#!/bin/bash -u
CHARMS=(
aodh
barbican
barbican-vault
ceilometer
ceilometer-agent
ceph-fs
ceph-iscsi
ceph-mon
@dosaboy
dosaboy / quiltrc
Created August 9, 2024 09:35
quiltrc
QUILT_PATCHES=debian/patches
QUILT_NO_DIFF_INDEX=1
QUILT_NO_DIFF_TIMESTAMPS=1
QUILT_REFRESH_ARGS="-p ab"
QUILT_DIFF_ARGS="--color=auto" # If you want some color when using `quilt diff`.
QUILT_PATCH_OPTS="--reject-format=unified"
QUILT_COLORS="diff_hdr=1;32:diff_add=1;34:diff_rem=1;31:diff_hunk=1;33:diff_ctx=35:diff_cctx=33"
@dosaboy
dosaboy / create_vm.sh
Last active July 1, 2024 13:23
create_vm.sh
#!/bin/bash -eux
ARCH=${1:-arm64}
IMAGES=/home/ubuntu/images
URL=https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-${ARCH}.img
LIBVIRT_IMAGES=/var/lib/libvirt/images
if ! [[ -d $LIBVIRT_IMAGES ]]; then
sudo apt install -y virtinst libvirt-daemon-system cloud-image-utils
sudo usermod -a -G libvirt-qemu $USER
newgrp libvirt-qemu
#!/bin/bash
# Description: wait until system load reaches threshold then start
# scripts and run for period then kill.
#
LIMIT=90
RUNTIME=300
SESSION_ID=`uuidgen`
declare -A PIDS=()
log () { echo -e "[`date '+%F %X'`] $@"; }
#!/bin/bash -u
# Origin: https://gist.github.com/dosaboy/7bdd004d33d7eb39a93835576227ad4a
#
# Authors:
# - [email protected]
#
# Tested on Ubuntu Bionic Ussuri
#
# Description:
# Fix arp entries affected by https://bugs.launchpad.net/neutron/+bug/1916761.
#!/bin/bash -u
# Origin: https://gist.github.com/dosaboy/f0f0b88a0fcb3553d3eeb21c9bb3963e
#
# Authors:
# - [email protected]
#
# Tested on Ubuntu Bionic
#
# Description:
# Discover incorrect arp entries for rfp/fpr interfaces
#!/bin/bash -eu
# Origin: https://gist.github.com/dosaboy/d5de0a0fceea188f92109c96bdad49ad
#
# Authors:
# - [email protected]
#
# Tested on:
# - Ubuntu Bionic
#
# Description:
This has been moved to https://github.com/dosaboy/openstack-toolkit. Please install the openstack-toolkit snap to get this check.
#!/bin/bash -u
# Origin: https://gist.github.com/dosaboy/45ed41d0c28d1656357dde40a87056fe
#
# Authors:
# - [email protected]
#
# Tested on Ubuntu Bionic
#
# Description:
# Discover missing default routes on qrouter namespaces