Skip to content

Instantly share code, notes, and snippets.

View thomasmerz's full-sized avatar
Drinking (too) much coffee.

Thomas Merz thomasmerz

Drinking (too) much coffee.
View GitHub Profile
@thomasmerz
thomasmerz / docker-wireguard-update.sh
Last active May 27, 2024 18:44
this script can be used to auto-update your wireguard docker instance
#!/bin/bash
# shellcheck disable=SC2015
cd /root/wireguard && \
docker-compose --ansi never pull 2>&1 | grep "is up to date" || \
{
docker-compose --ansi never stop && docker-compose --ansi never up -d
}
@thomasmerz
thomasmerz / pi-hole-update.sh
Last active May 27, 2024 18:46
this script can be used to auto-update your pi-hole docker instance
#!/bin/bash
need_restart=no
# ---
function restart_pihole() {
cd /root/pihole && {
docker-compose --ansi never pull 2>&1
docker-compose --ansi never stop && docker-compose --ansi never up -d
}
@thomasmerz
thomasmerz / get_vbox-extpack.sh
Created July 19, 2023 08:51
Update Extension Pack for VirtualBox automatically (grep -qE "$(date +\%Y-\%m-\%d).*virtualbox" /var/log/zypp/history)
#!/bin/bash
cd "$HOME/VirtualBox VMs/" || exit 1
# https://www.virtualbox.org/manual/ch08.html
VERSION=$(VBoxManage -v|cut -d '_' -f1|cut -d "r" -f1)
CURRENT=$(VBoxManage list extpacks|grep "Version:"|awk '{print $2}')
# MUST BE RUN AFTER 'get_vboxguestadditions.sh' !!!
[ "${VERSION}" == "${CURRENT}" ] && exit 1
@thomasmerz
thomasmerz / get_vboxguestadditions.sh
Created July 19, 2023 08:50
Update/Download VirtualBox Guest Additions automatically (grep -qE "$(date +\%Y-\%m-\%d).*virtualbox" /var/log/zypp/history)
#!/bin/bash
# https://www.virtualbox.org/manual/ch08.html
cd "$HOME/VirtualBox VMs/" || exit 1
# URL siehe: https://www.virtualbox.org/wiki/Downloads
# --> "Oracle VM VirtualBox Extension Pack All supported platforms "
VERSION=$(VBoxManage -v|cut -d '_' -f1|cut -d "r" -f1)
@thomasmerz
thomasmerz / mastodon-update.sh
Created July 11, 2023 11:37
bash-script for updating mastodon instance running in docker container(s)
#!/bin/bash
need_restart=no
# ---
function restart_mastodon () {
cd /opt/mastodon && {
git stash
git pull
git stash pop -q
Ich hab Polizei The Butcher Sisters
The Killer Queen DragonForce
Arise Hippie Death Cult
Dosenbier The Butcher Sisters
Sun Blackened - Live in Demonical
Prelude to Darkness DragonForce
Captain Jack (Metal Ver UMC & Anna-Lena B
Astro Warrior Anthem DragonForce
This Is It Nekrogoblikon
Arrival. The Meuse-Argo 1914
⭐ Total Stars: 50
➕ Total Commits: 971
🔀 Total PRs: 247
🚩 Total Issues: 2.0k
📦 Contributed to: 21
Markdown +832/ -832 ████████████░░░░░░░░░ 57.1%
JSON +4.9k/ -4.9k ████████▎░░░░░░░░░░░░ 39.6%
YAML +739/ -739 ▋░░░░░░░░░░░░░░░░░░░░ 3.2%
🌞 Morning 121 commits ███▏░░░░░░░░░░░░░░░░░ 14.9%
🌆 Daytime 422 commits ██████████▉░░░░░░░░░░ 52.1%
🌃 Evening 250 commits ██████▍░░░░░░░░░░░░░░ 30.9%
🌙 Night 17 commits ▍░░░░░░░░░░░░░░░░░░░░ 2.1%
❗️ Opened issue #3714 in thomasmerz/upptime
🗣 Commented on #3713 in thomasmerz/upptime
❗️ Closed issue #3713 in thomasmerz/upptime
❗️ Opened issue #3713 in thomasmerz/upptime
❗️ Closed issue #3712 in thomasmerz/upptime