Skip to content

Instantly share code, notes, and snippets.

View EldonMcGuinness's full-sized avatar

Eldon McGuinness EldonMcGuinness

View GitHub Profile
@EldonMcGuinness
EldonMcGuinness / superlink.bat
Last active October 23, 2024 04:11
Recursive link folder and files
@EldonMcGuinness
EldonMcGuinness / tvFilter.sh
Created October 16, 2024 19:05
Manage TV Schedule for Kids
#!/bin/bash
TOKEN="YOUR_SECRET_KEY"
LUKAH=USERID1
MICAH=USERID2
NAME=""
LOG=/var/log/tvfilter.log
@EldonMcGuinness
EldonMcGuinness / gist:cbb211eb0be0023fb56e1dac2e8066e4
Last active October 18, 2024 02:04
Set permission for apps on amazon kids+ content
// Goto https://parents.amazon.com/explore?selectedContentType=APP
// Edit this to fit your family, each line is a child in your kids+ family and the order
// here show match the order listed when you click on an item to enable / disable it.
const child_defaults = [
false,
false,
false,
false,
false,
#! /bin/bash
curl -s $(curl -vs test.nextdns.io 2>&1 | grep -hoE 'https://.+/') 2>&1
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 July 22, 2024 12:36
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",
"basketball",
"Tool",
"gloves",
"soap",
"controller",
"mirror",
"dumbbell",
@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 November 10, 2024 02:53
renameMovies
#!/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/')