Skip to content

Instantly share code, notes, and snippets.

View rwenz3l's full-sized avatar
🔨
Building new Things.

Robin Wenzel rwenz3l

🔨
Building new Things.
View GitHub Profile
@rwenz3l
rwenz3l / maintain.sh
Last active November 23, 2016 00:10
Maintenance Script for ACD
echo "(===== Checks =====)"
if [[ -d "/share/acd-raw/plexcrypt" ]];
then
echo "Properly Mounted";
else
echo "Crashed";
echo "(===== Unmount =====)"
echo "Unmount EncFS ACD"
fusermount -z -u /share/acd-dec
@rwenz3l
rwenz3l / upload.sh
Created August 24, 2016 08:13
Upload Script for Amazon Cloud Drive
# UPLOAD SCRIPT
echo "--> Pause All Torrents/Stop Deluge"
# deluge-console "pause *;quit"
systemctl stop deluged
echo "--> Stop PlexServer"
systemctl stop plexmediaserver
echo "--> Unmount EncFS and ACD"
fusermount -z -u /share/acd-dec/
fusermount -z -u /share/acd-raw/
echo "--> Clear ACD Cache and Sync"
@rwenz3l
rwenz3l / ToggleGateway.bat
Last active May 30, 2017 06:41
Toggle between two Gateways on Windows 7/8/10
@echo off
set /p DUMMY=Press ENTER to Toggle Internet Gateways..
CD %~dp0
IF EXIST "%~dp0fast.ini" (
ECHO Switch: Slow
route DELETE 0.0.0.0 MASK 0.0.0.0 192.168.10.6
route ADD 0.0.0.0 MASK 0.0.0.0 192.168.10.5
DEL Fast.ini
# Variante 1: Pure Python
from random import randint
def wuerfeln(wuerfel=1, versuche=1):
ergebnis = {}
for a in range(wuerfel,(wuerfel*6)+1):
ergebnis[a] = 0
for i in range(0, versuche):
summe = 0
for j in range(0, wuerfel):
#! /bin/sh
#
# Credit to: www.byan-roper.org
#
#
# actually uses some bash extensions; see comment on line 36
#
# change the UID of a login on Mac OS X 10.11 El Capitan
#
# run this script using sudo *from another user account*!!!
@rwenz3l
rwenz3l / cli_upload.sh
Created July 22, 2017 19:26
upload file to php with CLI (curl)
curl -F "logfile=@safe01.log" -F "sub=archive" localhost:9000/recv.php
@rwenz3l
rwenz3l / verify_flac.sh
Created July 23, 2017 15:45
Verify a FLAC file ripped with XLD
crc32 <(flac --decode --stdout --force-raw-format --endian=little --sign=signed /path/to/file.flac)
@rwenz3l
rwenz3l / verify_flac.sh
Last active July 23, 2017 19:32
Verify a FLAC Folder ripped with XLD
# crc32 <(flac --decode --stdout --force-raw-format --endian=little --sign=signed /path/to/file.flac)
function veriflac() {
NC='\033[0m'
Red='\033[0;31m'
Green='\033[0;32m'
if [ $# -eq 0 ]
then
echo -e "${Red}Usage:"
echo -e " veriflac /path/to/folder${NC}";
@rwenz3l
rwenz3l / hetzner-proxmox-docker.sh
Created September 2, 2017 15:29
Hetzner Dedicated with Debian 9 (Stretch) and Proxmox 5 (LXC) + Docker-CE + Portainer [NAT]
#############################################
### Proxmox V & Docker-CE + Portainer #
#############################################
## Rescue System
# Erase other disks
dd if=/dev/zero of=/dev/sda bs=1M count=100
dd if=/dev/zero of=/dev/sdb bs=1M count=100
# You can install debian 9 via the guide:
@rwenz3l
rwenz3l / audioReport.py
Created September 13, 2017 06:36
A Small Script to read Library Tags and Report Quality and Stuff
import sys, os, re
import xml.etree.ElementTree as ET
from mutagen.mp3 import MP3
'''
@param Uebergeben wird: "HostName" "/path/to/movies" "path/to/txt"
# HostName XServe = "XServe"
# Input XServe = "/Volumes/AUDIO"
# Output XServe = "/opt/syncthing/Repository/media"