Skip to content

Instantly share code, notes, and snippets.

View kriegalex's full-sized avatar
💭
Learning DevOps

kriegalex kriegalex

💭
Learning DevOps
View GitHub Profile
@kriegalex
kriegalex / bootstrap-kubernetes.sh
Last active March 7, 2024 16:25
Openstack Kolla Ansible 17.1.0 setup scripts, tested for Ubuntu 22.04 LTS
#!/bin/bash
network_id="kube-private"
subnet_id="kube-private-subnet"
flavor="e2-standard-2"
key_name="mykey"
image_id="ubuntu-22.04-lts"
security_group="kubernetes"
volume_size="200"
@kriegalex
kriegalex / 1_homelab-cheat-sheet.md
Last active June 21, 2023 17:56
A cheat sheet for regular commands when administering a standard homelab installation (truenas, unraid ...)

Useful homelab administration commands

Switch to another user

su - USER
sudo su - USER

View human readable size of subfolders/files

du -sh PATH/*
@kriegalex
kriegalex / nextcloud-manual-update.sh
Last active November 4, 2020 14:14
Utility scripts for Nextcloud & MySQL/MariaDB maintenance
#!/bin/bash
##Turn on maintenance mode
docker exec -it nextcloud occ maintenance:mode --on
##Backup current nextcloud install
docker exec -it nextcloud mv /config/www/nextcloud /config/www/nextcloud-backup
##Grab newest nextcloud release and unpack it
docker exec -it nextcloud wget https://download.nextcloud.com/server/releases/latest.tar.bz2 -P /config
@kriegalex
kriegalex / speedtest.sh
Created February 13, 2018 15:51
Speedtest from any Docker command line
#!/bin/bash
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -