Skip to content

Instantly share code, notes, and snippets.

View SmugZombie's full-sized avatar

Ron Egli SmugZombie

View GitHub Profile
#!/usr/bin/env bash
# delete-zone-identifier-ads.sh
# Recursively remove Windows Zone.Identifier tags:
# - Plain files named "Zone.Identifier"
# - ADS files like "file:Zone.Identifier"
# - ADS stored as xattrs (ntfs-3g streams_interface=xattr)
set -euo pipefail
usage() {
// ==UserScript==
// @name n8n Webhook Footer Console
// @author Ron Egli <[email protected]> (github.com/smugzombie)
// @namespace http://tampermonkey.net/
// @version 2025.08.27
// @description Footer panel on n8n designer to send test webhook requests; persists values; DOM-safe; hide/show toggle.
// @match http*://*/*workflow*
// @match http*://*/*workflows*
// @match http*://*/*/workflow/*
// @match http*://*/*/workflows/*
// ==UserScript==
// @name Next Button (TJX)
// @namespace http://tampermonkey.net/
// @version 2025-08-23
// @description Adds a button to navigate to the next product on TJX sites
// @author You
// @match https://tjmaxx.tjx.com/*
// @match https://www.marshalls.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=tjx.com
// @grant none
@SmugZombie
SmugZombie / key.pub
Created February 5, 2025 20:43
RustPubKey
IbcmN1MyoWE5yt1oNiRawKi4hNC55gWfI+1u9bvkgkM=
@SmugZombie
SmugZombie / enableHibernationUbuntu.sh
Created August 2, 2024 20:26
Automatically enables hibernation on Ubuntu 24.04 laptops.
#!/bin/bash
# This script configures suspend mode and prepares for hibernation on Ubuntu 24.04
# It ensures swap space is sufficient and configures GRUB for proper resume settings
# Check if the script is run as root or with sudo
if [ "$(id -u)" -ne 0 ]; then
echo "This script must be run as root or with sudo."
exit 1
fi
@SmugZombie
SmugZombie / goog2ddgredirect.js
Last active July 10, 2024 22:33
Google to DuckDuckGo Redirector
// ==UserScript==
// @name Google/Bing to DuckDuckGo Redirector
// @namespace http://smugzombie.com
// @version 1.1
// @description Redirects Google/Bing searches to DuckDuckGo.
// @author Ron Egli <[email protected]> (github.com/smugzombie)
// @match *://www.google.com/*
// @match *://www.bing.com/*
// @grant none
// ==/UserScript==
@SmugZombie
SmugZombie / tampermonkey.js
Created July 3, 2024 06:41
Media Download Assist Tampermonkey
// ==UserScript==
// @name Highlight and Download Media on sites
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Highlight and add a download button for images and videos on a webpage
// @author Ron Egli <github.com/smugzombie>
// @match *://*/*
// @grant none
// ==/UserScript==
const crypto = require('crypto');
function stringToMacAddress(input) {
// Create an MD5 hash of the input string
const hash = crypto.createHash('md5').update(input).digest('hex');
// Convert the hash to MAC address format
const macAddress = hash.match(/.{1,2}/g).slice(0, 6).join(':');
return macAddress;
const dns = require('dns');
const tls = require('tls');
const email = process.argv[2];
if (!email) {
console.error('Please provide an email address as an argument');
process.exit(1);
}
@SmugZombie
SmugZombie / validateEmail.js
Created March 23, 2023 16:59
Uses SMTP communication to validate whether the input email address exists or not
const dns = require('dns');
const net = require('net');
const email = process.argv[2];
if (!email) {
console.error('Please provide an email address as an argument');
process.exit(1);
}