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 | |
#Version 1.20 | |
# TODO: Handle multipart files .pt1.mkv .pt2.mkv etc | |
# Guess the Title | |
function guessTitle { | |
TEMP=$(echo $1 | sed 's/_/./g' | sed -E 's/\{.*?\}//g' | sed -E 's/\(\)//g' |sed -E 's/\(([0-9]{4})\)/\1/g' | sed -E 's/(.+)[0-9]{4}.*$/\1/' | sed -E 's/(.+)[0-9]{4}[^p].*$/\1/I' | sed -E 's/(.+)(1080|720|576|480)p.*$/\1/' | sed -E 's/(.+)[0-9]{4}$/\1/' | sed -E 's/([^\.]{2,})\./\1 /g' | sed -E 's/^([ai])\./\1 /gI' | sed -E 's/ ([ai0-9])\.([^0-9])/ \1 \2/gI' | sed -E 's/(([a-z0-9]\.)+)/\1 /gI' | sed -E 's/([0-9]+)\. ([0-9]+)/\1.\2/g' | sed -E 's/ / /' | sed -E 's/ $//' | sed -E 's/ $//' | sed -E 's/ ([0-9]+)\./ \1/') |
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 | |
### | |
# How to use: Set this up as a Cron job and have it call at a regular interval. | |
# Example Cron time: */5 * * * * | |
### | |
#This needs to mach the name you gave the script in the unraid UI | |
SCRIPT_NAME=driveStandBy |
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
================= | |
status.yml | |
================= | |
overlays: | |
airing_shows: | |
variables: {key: airing, weight: 40, text: AIRING, last: 14, back_color: <<back_color_<<key>>>>} | |
template: [name: standard, name: status] | |
returning_shows: | |
variables: {key: returning, weight: 30, text: RETURNING, back_color: <<back_color_<<key>>>>} |
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
0.0.0.0 activate.adobe.com | |
0.0.0.0 practivate.adobe.com | |
0.0.0.0 ereg.adobe.com | |
0.0.0.0 wip3.adobe.com | |
0.0.0.0 activate.wip3.adobe.com | |
0.0.0.0 3dns-3.adobe.com | |
0.0.0.0 3dns-2.adobe.com | |
0.0.0.0 adobe-dns.adobe.com | |
0.0.0.0 adobe-dns-2.adobe.com | |
0.0.0.0 adobe-dns-3.adobe.com |
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
GOOGLE_CAL="ics url" | |
LOGIN_CAL="user:pass" | |
DEST_CAL="url to radicale calendar" | |
curl "$GOOGLE_CAL" | curl -u "$LOGIN_CAL" -X PUT "$DEST_CAL" --data-binary @- | |
# If you're looking to share a calendar then use symlinks | |
#ln -sf /path/to/src /path/to/dest | |
#chown radicale:radicale /opt/radicale /etc/radicale -fR | |
#find /opt/radicale/ -type d -exec chmod 0750 "{}" \; | |
#find /etc/radicale/ -type d -exec chmod 0750 "{}" \; |
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
<?php | |
class Localization { | |
private $localization_directory = null; | |
private $language = null; | |
private $localization_array = null; | |
private $test_data = '{ | |
"00000000": "Hello", |
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 | |
WATCH_DIR=$1 | |
URL=https://ubuntu.com/download/alternative-downloads | |
cd "$WATCH_DIR" | |
for i in $(curl -sq "$URL" -- | grep -hoE 'http.+?torrent'); do wget -q $i; done |
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
### Keybase proof | |
I hereby claim: | |
* I am eldonmcguinness on github. | |
* I am eldonmcguinness (https://keybase.io/eldonmcguinness) on keybase. | |
* I have a public key ASBWBwMsv0MZRhwMxx0t7D340FhllyAn6PkgaxWxq31DKwo | |
To claim this, I am signing this object: |
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
In System Settings -> Notifications -> Screen Saver -> Screen Locked, add the following command. | |
/bin/sleep 3 && /usr/bin/xset dpms force standby |
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 | |
FILE=$(basename "$1" .epub) | |
if [ -e "${FILE}.mobi" ]; then | |
echo nothing to do | |
else | |
echo converting | |
ebook-convert "${FILE}.epub" "${FILE}.mobi" | |
fi |