Skip to content

Instantly share code, notes, and snippets.

View smithj33's full-sized avatar

smithtech smithj33

View GitHub Profile
@smithj33
smithj33 / bulk-delete-youtube-comments.txt
Created May 26, 2024 16:18
This is a script from a now deleted Reddit user. It works as of 05/26/2024. You paste it into the web console in your browser. It will delete one comment every 3 seconds due to limitations by Google.
# https://myactivity.google.com/page?hl=en&utm_medium=web&utm_source=youtube&page=youtube_comments
c=[];
for(i in e=document.getElementsByTagName('path')){
typeof(x = e[i])==='object'? x.getAttribute('d').includes('6.41z') ? c.push(x.parentNode.parentNode):e:e;
}
setInterval(()=>{
c[0].click();c.splice(0, 1)
}, 3000);
@smithj33
smithj33 / install-zabbix-agent2.sh
Last active June 18, 2024 11:31
This script is only for use with Ubuntu LTS 20.04 / 22.04 / 24.04, Debian 11-13 and Raspbian 9-12. It will install Zabbix Agent2 v6.4. The script will determine the correct package to download and install based on your disto, version and architecture. ***Remove references to "sudo" if you will be running this as root.
#!/bin/bash
yellow='\033[1;33m'
# Variables to determine which distro, version and arch you are using.
# As of 5/25/2024, Zabbix does not have a Raspian Bookworm version, so Debian 12 ARM version will be installed.
distro=$(cat /etc/os-release | grep -w 'ID' | cut -b 4-)
ver=$(cat /etc/os-release | grep -w VERSION_ID | cut -b 13- | sed 's/.$//')
name=$(cat /etc/os-release | grep 'VERSION_CODENAME' | cut -b 18-)
arch=$(uname -a | grep -c -F 'aarch64')
@smithj33
smithj33 / proxmoxvnc.sh
Last active January 7, 2024 06:26
Bash script that allows you to access an VM remotely via VNC. With the script, you can easily add / change a VNC port in a VM conf file without needing to install VNC server directly on each VM. This has only been tested for Linux guests on a vanilla Proxmox installation.
#!/bin/bash
# ProxmoxVNC
# Use this script to add a VNC port to a Proxmox virtual machine for remote access.
# To access the VM remotely, enter the VM IP address and the port # shown in the
# output of the script. The port # will always start with 59.
#
# You can save and run this script from anywhere on your system.
# This script has only been tested on Linux guest on a vanilla Proxmox installation.
# https://gist.github.com/smithj33
@smithj33
smithj33 / block_doh.txt
Last active June 21, 2024 02:53
List of domains for blocking DOH / DNS over HTTPS servers to better secure and control your network. Only tested on OPNsense.
abel.waringer-atg.de/dns-query
vn.dns.abpvn.com/dns-query
res-acst3.absolight.net/dns-query
resolver3.absolight.net/dns-query
adl.adfilter.net/dns-query
per.adfilter.net/dns-query
syd.adfilter.net/dns-query
dns.adguard-dns.com/dns-query
family.adguard-dns.com/dns-query
unfiltered.adguard-dns.com/dns-query