Skip to content

Instantly share code, notes, and snippets.

View EldonMcGuinness's full-sized avatar

Eldon McGuinness EldonMcGuinness

View GitHub Profile
@EldonMcGuinness
EldonMcGuinness / extract_spam.rb
Last active February 18, 2025 05:59
Find tickets that are spam and write them to files
# the tag to look for, your spam should have this tag
spam_tag = "spam"
# Where to store the eml files
# !!! Note that there is not a trailing slash, do not put one !!!
destination = "/opt/zammad/spam_tickets"
#find tickets with a spam tag
puts "Looking for Spam\r\n"
for ticket in Ticket.all do
@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 April 12, 2025 11:07
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",
"basketball",
"tool",
"controller",
"mirror",
"dumbbell",
"fridge",
"mixer",
"steam",
@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