Skip to content

Instantly share code, notes, and snippets.

View EldonMcGuinness's full-sized avatar

Eldon McGuinness EldonMcGuinness

View GitHub Profile
adb shell settings put global private_dns_mode hostname
adb shell settings put global private_dns_specifier IDENTIFIER-HERE-XXXXXXX.dns.nextdns.io
@EldonMcGuinness
EldonMcGuinness / block TLDs
Last active June 20, 2024 21:47
nextDNS Block TLDs
# This script is to be used on nextdns.io => Security => Block Top-Level Domains (TLDs) => Add a TLD
# Once the modal window is open, in the console you can run the below code to block all TLDs that are
# not in the validTLD array.
const delay = ms => new Promise(res => setTimeout(res, ms));
const blocker = async () => {
// List of TLDs that should not be blocked
let validTLD = [
class Variable {
obj: any;
constructor() {
this.obj = JSON.parse( MakerWebhooks.makeWebRequestQueryJson[0].ResponseBody );
}
get( name: string ) {
if ( !(name in this.obj) ){
{"0":[
android,
baby,
Tool,
gloves,
soap,
controller,
mirror,
dumbbell,
monitor,
@EldonMcGuinness
EldonMcGuinness / backupPlex.sh
Created February 24, 2024 00:56
Backup Plex
#!/bin/bash
ALL=false
DB=false
if [ -z $1 ]; then
exit
fi
if [ -z $2 ]; then
ALL=true
@EldonMcGuinness
EldonMcGuinness / renameMovies
Last active January 27, 2024 17:30
renameMovies
#!/bin/bash
#Version 1.16
function guessEdition {
TEMP=$(echo $1 | sed -E 's/.*((special|limited|uncensored|imax|deluxe|criterion|collector|remastered|ultimate|international|german|dircut|uncut|director|alternate|theatrical|extended|unrated|final)).*/\1/gI')
TEMP=$(echo $TEMP | tr '[:upper:]' '[:lower:]')
if [ "$TEMP" != "" ]; then
case $TEMP in
special) TEMP="Special" ;;
@EldonMcGuinness
EldonMcGuinness / diskStandBy
Last active October 24, 2023 13:48
diskStandBy
#!/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
@EldonMcGuinness
EldonMcGuinness / gist:d43d4ec8200db0b10c07b3f722505048
Last active July 23, 2023 01:53
PMM Colors Based on Status
=================
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>>>>}
@EldonMcGuinness
EldonMcGuinness / adobe-cc-2019-host.txt
Created April 6, 2021 11:41
Adobe CC 2019 activation host block
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
@EldonMcGuinness
EldonMcGuinness / google-to-radicale
Created January 16, 2020 01:10
Copy a calendar from google into radicale
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 "{}" \;