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
The Shower Scene Ice Nine Kills
Smoke on the Water The Denis Pauna
Get in the Ring Amon Amarth
Funeral Derangements Ice Nine Kills
Hip To Be Scared [Feat. Ice Nine Kills &
A Grave Mistake Ice Nine Kills
More German Than German Hanzel und Gretyl
Rainy Day Ice Nine Kills
Welcome To Horrorwood Ice Nine Kills
Ex-Mørtis Ice Nine Kills
⭐ Total Stars: 30
➕ Total Commits: 726
🔀 Total PRs: 236
🚩 Total Issues: 1.6k
📦 Contributed to: 42
JSON +13.9k/ -25.7k ████████████▎░░░░░░░░ 58.9%
Markdown +1.2k/ -1.1k ██████▉░░░░░░░░░░░░░░ 32.9%
YAML +1.4k/ -1.1k █▎░░░░░░░░░░░░░░░░░░░ 6.1%
HTML +6/ -6 ▍░░░░░░░░░░░░░░░░░░░░ 2.1%
TypeScript +1/ -1 ░░░░░░░░░░░░░░░░░░░░░ 0.0%
🌞 Morning 86 commits ██▊░░░░░░░░░░░░░░░░░░ 13.3%
🌆 Daytime 314 commits ██████████▏░░░░░░░░░░ 48.5%
🌃 Evening 230 commits ███████▍░░░░░░░░░░░░░ 35.5%
🌙 Night 17 commits ▌░░░░░░░░░░░░░░░░░░░░ 2.6%
🗣 Commented on #2770 in thomasmerz/upptime
🗣 Commented on #2782 in thomasmerz/upptime
❗️ Closed issue #2782 in thomasmerz/upptime
❗️ Closed issue #2781 in thomasmerz/upptime
🗣 Commented on #2781 in thomasmerz/upptime