Skip to content

Instantly share code, notes, and snippets.

@rmtbb
rmtbb / DEXSCREENER RugCheck Bookmarklet for Solana Tokens.url
Created January 21, 2025 06:51
DEXSCREENER RugCheck Bookmarklet for Solana Tokens
javascript:(function(){const el=document.querySelector("#root > div > main > div.custom-12pypef > div > div.custom-7w9b0e > div > div > div:nth-child(3) > div > div.chakra-stack.custom-1lzkwvw > div:nth-child(9) > div > a");if(el){const tokenAddress=el.href.split('/').pop();if(tokenAddress.length>=32){window.open(`https://rugcheck.xyz/tokens/${tokenAddress}`,'_blank');}else{alert('Invalid token address detected.');}}else{alert('Element not found.');}})();
@rmtbb
rmtbb / folder_nuke.py
Created January 20, 2025 00:46
Folder Nuke: A Python script for overwriting file data and renaming files and folders to prevent data recovery before deletion.
"""
Folder Nuke: Secure Data Overwrite and Rename Script
This script is designed to securely overwrite and rename all files and folders within a specified directory.
Its purpose is to prevent the recovery of sensitive data by overwriting file contents with random data and
randomizing file and folder names.
Features:
- Overwrites file contents with random alphanumeric data.
- Renames files to random alphanumeric names while preserving their extensions.
@rmtbb
rmtbb / universalMailMergeByRemoteBB.gs
Last active December 25, 2025 23:35
UNIVERSAL MAIL MERGE (File ID or Draft Subject) by Remote BB
/**
* UNIVERSAL MAIL MERGE (File ID or Draft Subject) by Remote BB
*
* OVERVIEW:
* 1) Prompts the user for a single piece of text.
* - We first assume it's a Google Docs/Slides File ID.
* - If we can open the file AND it is Docs or Slides, we do a Docs/Slides merge.
* - Otherwise, we treat the input as part of a Gmail draft's subject and do an email merge.
*
* 2) Merges the data from the currently selected sheet:
@rmtbb
rmtbb / iMessageAttachmentsLinksExtractor.sh
Created November 3, 2024 23:16
iMessage Attachments and Links Extractor for macOS
#!/bin/bash
# Define the main export folder
export_folder=~/Desktop/iMessages_Export
mkdir -p "$export_folder"
# Part 1: Generate the CSV file
echo "Generating CSV file..."
sqlite3 ~/Library/Messages/chat.db <<EOF
@rmtbb
rmtbb / gist:741fe56b812e8074d86b7de0562f82c8
Created October 7, 2024 03:49
Coupa Roles And Permissions Combiner Script.py
"""
This script processes multiple CSV files containing roles and permissions data, each residing in a 'data' subfolder relative to the script's location. Each CSV file is expected to have columns labeled 'Controller', 'Action', 'Permission ID', 'Description', and 'Enabled'. The script performs the following tasks:
1. Reads each CSV file from the 'data' subfolder.
2. Renames the 'Enabled' column of each file to reflect the name of the source file, with underscores and hyphens converted to spaces, to maintain uniqueness across different files.
3. Aligns all DataFrames on the 'Controller', 'Action', 'Permission ID', and 'Description' columns, assuming these columns are consistent across files.
4. Merges all processed DataFrames horizontally, creating a master DataFrame where each 'Enabled' column is distinctly named according to its original CSV file.
5. Saves the resulting master DataFrame to an Excel file named 'Master_Permissions_File.xlsx' in the script's running directory.
Usage:
@rmtbb
rmtbb / ChatGPT Canvas HTML Renderer from Clipboard.url
Last active August 2, 2026 10:23
Bookmarklet that lets you render a full HTML page with any included css and javascript that is currently copied to your clipboard. Also works for SVG code. Useful with ChatGPT Canvas
javascript:(function(){try{navigator.clipboard.readText().then(function(t){if(t){var e=window.open("","_blank","width=800,height=600");e.document.open(),e.document.write(t),e.document.close()}else alert("Clipboard is empty. Please copy some text to the clipboard first.")}).catch(function(t){console.error("Failed to read clipboard contents: ",t),alert("An error occurred while trying to access the clipboard. Please ensure your browser allows clipboard access.")})}catch(t){console.error("An error occurred:",t),alert("An error occurred while trying to open the new window with the clipboard content.")}})();//bookmarklet_title: HTML Preview from Clipboard
@rmtbb
rmtbb / chatGptDelay-Bookmarklet.url
Last active September 23, 2024 06:20
Bookmarklet: ChatGPT Delay Send
javascript:(function(){ var time = prompt("Enter delay in minutes or seconds (e.g., '5s' for 5 seconds or '4m' for 4 minutes). If not specified, default is minutes:"); var delay; if (time.endsWith('s')) { delay = parseInt(time) * 1000; } else if (time.endsWith('m') || !time.match(/\d+[sm]/)) { delay = parseInt(time) * 60000; } else { delay = parseInt(time) * 60000; } setTimeout(() => { var button = document.querySelector('body > div.relative.flex.h-full.w-full.overflow-hidden.transition-colors.z-0 > div.relative.flex.h-full.max-w-full.flex-1.flex-col.overflow-hidden > main > div.composer-parent.flex.h-full.flex-col.focus-visible\\:outline-0 > div.md\\:pt-0.dark\\:border-white\\/20.md\\:border-transparent.md\\:dark\\:border-transparent.w-full > div > div.text-base.px-3.md\\:px-4.m-auto.w-full.md\\:px-5.lg\\:px-4.xl\\:px-5 > div > form > div > div.group.relative.flex.w-full.items-center > div.flex.w-full.flex-col.gap-1\\.5.rounded-\\[26px\\].p-1\\.5.transition-colors.bg-\\[\\#f4f4f4\\].dark\\:bg-token-main-surf
@rmtbb
rmtbb / shanegillis-dates.sh
Created June 27, 2024 05:21
Bash script to return Shane Gillis' upcoming tour dates from his website
curl -s "https://rest.bandsintown.com/artists/Shane%20Gillis/events?app_id=squarespace-moose-pelican-53kl&date=upcoming" | jq '[.[] | select(.offers[]?.type == "Tickets") | {Date: .starts_at, "Artist Name": .lineup[0], "City and State": "\(.venue.city), \(.venue.region)", "Venue Name": .venue.name, "Tickets URL": (.offers[] | select(.type == "Tickets").url)}] | sort_by(.Date)'
nohup zsh -c 'while true; do voice=$(say -v "?" | awk "{print \$1}" | sort -R | head -1); say -v "$voice" "It is now $(date "+%l %M %p")."; sleep $((30 + RANDOM % 1971)); done' &
nohup bash -c "ps aux | grep '[s]ay' | awk '{print \$2}' | xargs kill" &