This file contains hidden or 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 hidden or 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 "[email protected]" -F "sub=archive" localhost:9000/recv.php |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 | |
if [ $# -eq 1 ] | |
then | |
INPUT="${1}" | |
else | |
echo "Keine Input Parameter gegeben" | |
exit | |
fi | |
for line in $(cat ${INPUT} | tail -n 9 | tr " " "-" | grep '[0-9]$'); do |
This file contains hidden or 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
static int LandeskennungToZahl(String Landeskennung){ | |
// Beispiel Landeskennung = DE | |
// return Zahl = 1314 | |
String alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
String LandesZahl = ""; | |
for(char b : Landeskennung.toCharArray()) { | |
int n = 10; | |
for(char a : alphabet.toCharArray()) { | |
String buchstabe = String.valueOf(n); | |
System.out.println("Ist " + b + " = " + a); |
This file contains hidden or 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
-- set the path as POSIX path | |
set thePath to "Macintosh HD:Users:userName:Documents:" | |
-- set timeStamp | |
set theDate to current date | |
set dateStamp to the year of theDate & "-" & the month of theDate & "-" & the day of theDate & " " & hours of theDate & "-" & minutes of theDate | |
-- set movieName | |
set movieName to dateStamp & ".mov" | |
-- set final path and make it a file reference | |
set filePath to thePath & movieName | |
set f to a reference to file filePath |