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)
⭐ Total Stars: 52
➕ Total Commits: 1.0k
🔀 Total PRs: 244
🚩 Total Issues: 2.1k
📦 Contributed to: 18
Markdown +538/ -538 ██████████▏░░░░░░░░░░ 48.4%
JSON +3.4k/ -3.4k █████████▉░░░░░░░░░░░ 47.0%
YAML +630/ -630 ▉░░░░░░░░░░░░░░░░░░░░ 4.6%
🌞 Morning 122 commits ███▎░░░░░░░░░░░░░░░░░ 15.8%
🌆 Daytime 432 commits ███████████▋░░░░░░░░░ 55.9%
🌃 Evening 206 commits █████▌░░░░░░░░░░░░░░░ 26.6%
🌙 Night 13 commits ▎░░░░░░░░░░░░░░░░░░░░ 1.7%