Skip to content

Instantly share code, notes, and snippets.

View bitmvr's full-sized avatar

Jesse Riddle bitmvr

View GitHub Profile
@bitmvr
bitmvr / reddit-privacy-bookmarklet-clear-recents.js
Last active November 3, 2025 15:57
Reddit Bookmarklet Privacy Tool: Clear Recent from Local Storage and DOM
javascript: (() => {
const keys = Object.keys(localStorage).filter(k => k.startsWith('recent-'));
keys.forEach(k => localStorage.removeItem(k));
const el = document.querySelector('reddit-recent-pages');
if (el) el.remove();
console.log(`Removed ${keys.length} localStorage item(s) with "recent-"`);
console.log(el ? 'Removed <reddit-recent-pages> from DOM' : 'No <reddit-recent-pages> found');
})();
@bitmvr
bitmvr / FileShareManager.ps1
Created October 27, 2025 16:23
Interactive File Share Manager for Windows
# Service User and SMB Share Management Script for Windows
# Must be run as Administrator
# Note: This is not enterprise grade and it's not meant to be.
# This is to assist small offices and home labs in
# being productive.
#Requires -RunAsAdministrator
# Function to write colored output
@bitmvr
bitmvr / ffmpeg-reference.md
Last active March 20, 2025 18:04
ffmpeg References

ffmpeg Reference

Add Subtitles to Video (include language)

ffmpeg -i source_file.mkv -i video_subtitles.sub -map 0 -map 1 -metadata:s:s:0 language=eng -c copy target_file.mkv

Convert Container

@bitmvr
bitmvr / audiobookshelf-filename-from-audible.js
Created February 14, 2025 16:46
Audible Page to AudiobookShelf Naming Convention
var ab_detail = {};
ab_detail.title = document.querySelectorAll('h1')[0].textContent.trim();
ab_detail.subtitle = document.querySelectorAll('h2')[0].textContent.trim();
var __get_ab_metadata = (selector, index) => {
return JSON.parse(
document.querySelectorAll(selector)[index].textContent.trim()
);
}
@bitmvr
bitmvr / macos-wifi-analyzer.sh
Last active January 24, 2025 19:21
Text Based Wi-Fi Analyzer for MacOS Terminal
#!/usr/bin/env bash
SLEEP_INTERVAL=5
LOG_FILE="/tmp/wifi_monitor_$(date -u +%Y-%m-%d).json"
__get_wifi_info(){
sudo wdutil info | egrep "(RSSI|Tx Rate|^\s*Channel\s*\:)"
}
__get_rssi(){
@bitmvr
bitmvr / pokemon-scraper.js
Created April 23, 2024 15:26
Pokemon Scraper
/* The follwing Javascript is to be used inside a browser's console to extract
data from the first three columns of the table. The website this code is designed
for is: https://www.serebii.net/pokemon/gen6pokemon.shtml
*/
var tableRows = document.querySelectorAll('.dextable tr');
var csvContent = '';
tableRows.forEach(function(row) {
var rowData = [];
@bitmvr
bitmvr / dtmf_oscillation_songs.js
Last active March 8, 2025 16:07
Javascript Oscillation / DTMF Songs
#!/usr/bin/env node
var dtmf = {
"0":{ "hf": "1336", "lf": "941" },
"1":{ "hf": "1209", "lf": "697" },
"2":{ "hf": "1336", "lf": "697" },
"3":{ "hf": "1477", "lf": "697" },
"4":{ "hf": "1209", "lf": "770" },
"5":{ "hf": "1336", "lf": "770" },
"6":{ "hf": "1477", "lf": "770" },
@bitmvr
bitmvr / generate-plex-movie-filename.js
Last active April 3, 2024 19:25
Bookmarklet for Generating Plex Supported Filename for Movies from TMDB or IMDB
/*
The following code is used to generate a string that adheres to a Plex filename
convention for movie titles. This code can strip page titles from either
TMDB or IMDB and put them in dot notation of:
Movie.Title.Year.{source-sourceId}
An extension is not provided as I do not know the extension of the target file.
*/
@bitmvr
bitmvr / parseable-curl-response-example.sh
Last active January 7, 2024 15:12
Create Parseable cURL Response with Bash and jq
#!/usr/bin/env bash
__http_request_example(){
curl \
--silent \
--location http://ip.jsontest.com \
--write-out "\n%{http_code}"
}
__response_formatter(){
@bitmvr
bitmvr / spotify-get-artist.sh
Last active December 18, 2023 17:45
Spotify API Example | Get Artist
#!/usr/bin/env bash
# Learn More About Spotify API
# https://developer.spotify.com/documentation/web-api/tutorials/getting-started
if [ -z "${SPOTIFY_CLIENT_ID}" ] || [ -z "${SPOTIFY_CLIENT_SECRET}" ]; then
echo "SPOTIFY_CLIENT_ID and SPOTIFY_CLIENT_SECRET must be set."
exit 1
fi