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
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 |
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
# 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" |
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
@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 |
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
# 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): |
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/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*!!! |
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
curl -F "logfile=@safe01.log" -F "sub=archive" localhost:9000/recv.php |
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
crc32 <(flac --decode --stdout --force-raw-format --endian=little --sign=signed /path/to/file.flac) |
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
# 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}"; |
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
############################################# | |
### 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: |
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
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" |