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
read -p "Windows_ISO_Path = " winPath | |
diskutil list | less | |
read -p "Disk_N = " disk | |
clear | |
umount /dev/${disk} | |
sudo diskutil eraseDisk FAT32 "WINDOWS7" MBRFormat /dev/${disk} | |
disk="${disk}s1" | |
sudo dd bs=1m if=${winPath} of=/dev/${disk} |
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
# Single Disk Setup ! | |
# OpenZFS on OSX Version 1.30 | |
diskutil list | |
echo "Disk = disk#" | |
read -p "Disk = " disk | |
diskutil unmountDisk /dev/${disk} | |
sudo diskutil partitiondisk /dev/${disk} GPTFormat ZFS %noformat% 100% | |
echo "--------------------" | |
echo "Name your zpool!" |
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 | |
# credits : http://www.seeds-std.co.jp/seedsblog/2005.html | |
# getting the repos // only if needed | |
# touch /etc/apt/sources.list.d/ps3mediaserver.list | |
# echo "deb http://www.deb-multimedia.org wheezy main non-free" > /etc/apt/sources.list.d/ps3mediaserver.list | |
# apt-get update && apt-get install deb-multimedia-keyring | |
# |
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 | |
clear | |
cd /usr/src | |
wget -O btsync_x64.tar.gz http://download.getsyncapp.com/endpoint/btsync/os/linux-x64/track/stable | |
tar -xf btsync_x64.tar.gz -C /usr/local/sbin btsync | |
adduser --quiet --system --group --disabled-password |
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 --output '~/Downloads/%(title)s.%(ext)s' --restrict-filenames --max-quality mp4 "https://www.youtube.com/playlist?list=PLE7j5FieXSTfwPJ2GQvSIWnMj-WDFbuCD" |
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
-- 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 |
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
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 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 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" |
OlderNewer