Skip to content

Instantly share code, notes, and snippets.

View bumbummen99's full-sized avatar
🙃
Branches come and go, but commits stay!

Patrick bumbummen99

🙃
Branches come and go, but commits stay!
View GitHub Profile
@bumbummen99
bumbummen99 / slaac-off.sh
Last active June 7, 2023 15:41
Script to disable SLAAC / IPv6 Privacy Extensions (RFC 4942) on Raspbian (Debian).
#!/usr/bin/env bash
#
# Script to disable SLAAC / IPv6 Privacy Extensions (RFC 4942) on Raspbian (Debian).
#
# Usage:
# $ wget -O - https://gist.github.com/bumbummen99/069202853dd65d6addf3c117bed9b2d5/raw/slaac-off.sh | bash
#
# Author: Patrick Henninger
# License: GNU GPL v3
@bumbummen99
bumbummen99 / upscale.ps1
Last active June 2, 2023 15:26
Small PowerShell script to bulk upscale all files within a directory using Real-ESRGAN
# Requirements:
#
# You need to have Real-ESRGAN installed and within your PATH.
# You can get Real-ESRGAN at the offical repository at
# https://github.com/xinntao/Real-ESRGAN
#
# Installation:
#
# Copy the script into any directory that is in your PATH variable.
# You can call it from PS using the file name i.e. upscale.
@bumbummen99
bumbummen99 / crunchyroll.ps1
Last active April 29, 2023 16:03
Powershell script to download Videos from Crunchyroll using YouTube-DL and browser cookies for authentification.
# Installation:
#
# Copy the script into any directory that is in your PATH variable.
# You can call it from PS using the file name i.e. crunchyroll.
#
# You can find more information on how to edit the PATH and other
# environment variables on the offical Microsoft documentation:
# https://learn.microsoft.com/en-us/windows/win32/procthread/environment-variables
#
# Usage:
@bumbummen99
bumbummen99 / crunchyroll.sh
Created April 28, 2023 17:05
Small script to download from Crunchyroll using YouTube-DLP and browser cookies.
#!/usr/bin/env bash
# Configure the script
URL="$1"
BROWSER="$2"
SUBTITLES="${3:-de-DE}"
# Build up the command
CMD=()
@bumbummen99
bumbummen99 / .bash_aliases
Created March 3, 2023 11:47
Bash aliases for VS Code to quickly open a new window in the current directory from the command line.
alias codehere='code-here'
alias code-here='code -n -g .'
@bumbummen99
bumbummen99 / enable-ssh-agent.ps1
Last active February 22, 2023 17:55
Script to enable ssh-agent and add existing key files in Windows 10 / 11 for use with VSCode DevContainer.
# SSH-Helper
#
# This PowerShell script is a small helper to:
# 1) Enable the ssh-agent service in Windows and start it
# 2) Run ssh-add for all private key files in the home directory
#
# Important: This script assumes your keys to be saved *NIX style under "%USERPROFILE%/.ssh"!
#
# Author: Patrick Henninger <privat@skyraptor.eu>
# License: GPLv3
@bumbummen99
bumbummen99 / install-emby.sh
Last active June 4, 2024 17:57
Script to install/update emby
#!/usr/bin/env bash
# Create TMP directory
TMP=$(mktemp -d)
# Get emby server deb package from the latest release files
LATEST=$(curl -s https://api.github.com/repos/MediaBrowser/Emby.Releases/releases/latest | jq '.assets[] | select(.name|match("emby-server-deb.*_amd64.deb$")) | .browser_download_url' | tr -d '"')
echo "Found latest release .deb package at: $LATEST"
# Download emby server deb pacakge to TMP
@bumbummen99
bumbummen99 / dcomposer.sh
Created January 12, 2023 13:18
Bash helper to run Composer with a specific PHP version using Docker.
#!/usr/bin/env bash
# Bash helper to run Composer with a specific PHP version using Docker.
# Source this file in your profile/bashrc or add it to bash_aliases.
#
# Author: Patrick Henninger <privat@skyraptor.eu>
# License: GPLv3
# Examples:
# dcomposer
#
@bumbummen99
bumbummen99 / installed.sh
Last active January 11, 2023 12:49
Helper script to determine if a given list of software is installed and available on the system.
#/usr/bin/env bash
# Helper script to determine if a given list of software is installed and available on the system.
# The script will fail and output the missing software in case a software can not be found.
#
# Author: Patrick Henninger <privat@skyraptor.eu>
# License: GPLv3
# Examples:
# ./installed.sh "pv rsync vim" && echo "Everything is installed"
# ...
@bumbummen99
bumbummen99 / waitForDockerServiceLog.sh
Last active January 28, 2023 12:27
Simple script to wait for a certain output from a docker container. Useful for waiting for mysql user being created after the mysql container has been started and healthy
#!/usr/bin/env bash
#
# Simple script to wait for a certain output from a docker container.
# Useful for waiting for mysql user being created after the mysql
# container has been started and healthy
#
# Author: Patrick Henninger <privat@skyraptor.eu>
# License: GPL 3.0 (https://choosealicense.com/licenses/gpl-3.0/)
#