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
#!/bin/bash | |
NVME=nvme0n1 | |
HOSTNAME=neongruen | |
USERNAME=malte | |
read -rp "Enter your encryption passphrase: " PASSWORD | |
read -rp "Verify your encryption passphrase: " PASSWORD_VERIFY | |
if [ "$PASSWORD" != "$PASSWORD_VERIFY" ]; then | |
echo "Passphrases don't match" | |
exit 1 | |
else |
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
// Imprved the script from this blog https://www.grahn.io/posts/2020-02-08-s3-vs-b2-static-web-hosting/ | |
// Backblaze Url | |
const baseURL = "https://f000.backblazeb2.com/file/yourbucket" | |
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event)) | |
}) | |
async function handleRequest(event) { |
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
[Unit] | |
Description=TeamSpeak Server | |
After=network.target | |
[Service] | |
WorkingDirectory=/opt/teamspeak3-server_linux_amd64/ | |
User=teamspeak | |
Group=teamspeak | |
Type=forking | |
ExecStart=/opt/teamspeak3-server_linux_amd64/ts3server_startscript.sh start inifile=ts3server.ini |
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
# Upgrade for Teamspeak Server | |
# Call this script with eg. bash update-teamspeak.sh 3.12.1 | |
# Please set absolute paths! | |
# Set here your server directory | |
TSPATH=/home/teamspeak | |
# Path where server gets backuped befor upgrade | |
BACKUPPATH=/backup | |
if [ -z "$1" ]; then | |
echo "No version number given." |
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
youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4' YOUR_VIDEO |
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
# no need for shebang - this file is loaded from charts.d.plugin | |
# netdata | |
# This has to go unter /usr/libexec/netdata/charts.d/bandwidth.chart.sh or /etc/netdata/charts.d/bandwidth.chart.sh or /opt/netdata/netdata-plugins/charts.d/bandwidth.chart.sh | |
# real-time performance and health monitoring, done right! | |
# (C) 2016 Costa Tsaousis <[email protected]> | |
bandwidth_update_every=1 | |
bandwidth_priority=100 | |
# Should this chart be enabled? |