View slaac-off.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
View upscale.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
View crunchyroll.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: |
View crunchyroll.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Configure the script | |
URL="$1" | |
BROWSER="$2" | |
SUBTITLES="${3:-de-DE}" | |
# Build up the command | |
CMD=() |
View .bash_aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias codehere='code-here' | |
alias code-here='code -n -g .' |
View enable-ssh-agent.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
View install-emby.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
View dcomposer.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# |
View installed.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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" | |
# ... |
View waitForDockerServiceLog.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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/) | |
# |
NewerOlder