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: 46
➕ Total Commits: 822
🔀 Total PRs: 247
🚩 Total Issues: 1.8k
📦 Contributed to: 29
JSON +4.4k/ -4.4k ███████████▋░░░░░░░░░ 55.7%
HTML +1.0k/ -1.0k █████▍░░░░░░░░░░░░░░░ 26.0%
Markdown +609/ -603 ██▌░░░░░░░░░░░░░░░░░░ 12.3%
YAML +927/ -927 █▎░░░░░░░░░░░░░░░░░░░ 6.0%
🌞 Morning 105 commits ███▏░░░░░░░░░░░░░░░░░ 15.0%
🌆 Daytime 351 commits ██████████▌░░░░░░░░░░ 50.1%
🌃 Evening 227 commits ██████▊░░░░░░░░░░░░░░ 32.4%
🌙 Night 17 commits ▌░░░░░░░░░░░░░░░░░░░░ 2.4%
🗣 Commented on #704 in mediathekview/MediathekView
🗣 Commented on #3438 in thomasmerz/upptime
❗️ Closed issue #3438 in thomasmerz/upptime
❗️ Opened issue #3438 in thomasmerz/upptime
🗣 Commented on #2290 in pi-hole/FTL