Skip to content

Instantly share code, notes, and snippets.

View bitmvr's full-sized avatar

Jesse Riddle bitmvr

View GitHub Profile
@bitmvr
bitmvr / facebook-ics-qrcode.js
Created February 10, 2026 06:34
Facebook Event to ICS QR Code
javascript:void (async()=>{var t;!function(){function e(t){this.mode=h.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=[],r=0,o=this.data.length;o>r;r++){var n=this.data.charCodeAt(r);n>65536?(e[0]=240|(1835008&n)>>>18,e[1]=128|(258048&n)>>>12,e[2]=128|(4032&n)>>>6,e[3]=128|63&n):n>2048?(e[0]=224|(61440&n)>>>12,e[1]=128|(4032&n)>>>6,e[2]=128|63&n):n>128?(e[0]=192|(1984&n)>>>6,e[1]=128|63&n):e[0]=n,this.parsedData=this.parsedData.concat(e)}this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function r(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}function o(t,e){if(null==t.length)throw new Error(t.length+"/"+e);for(var r=0;r<t.length&&0==t[r];)r++;this.num=new Array(t.length-r+e);for(var o=0;o<t.length-r;o++)this.num[o]=t[o+r]}function n(t,e){this.totalCount=t,this.dataCount=e}function i(){this.buffer=[],this.length=0}function a(){var t=!1,e=navigato
@bitmvr
bitmvr / wolt-radio-artist-data_20251108.txt
Last active November 12, 2025 15:28
Radio Aritst Data for 2025-11-08
┌─────────┬──────────────────────────────────────────────────┬─────────────────────────────────────────────────────────────┬───────────────────────┬────────────────────────┐
│ (index) │ artist │ title │ date │ source │
├─────────┼──────────────────────────────────────────────────┼─────────────────────────────────────────────────────────────┼───────────────────────┼────────────────────────┤
│ 0 │ '3 Doors Down' │ 'Kryptonite' │ '2025-11-08 16:20:12' │ 'songs-origin-02.json' │
│ 1 │ '3 Doors Down' │ "When I'm Gone" │ '2025-11-08 24:50:52' │ 'songs-origin-03.json' │
│ 2 │ '311' │ 'Amber' │ '2025-11-08 03:50:29' │ 'song
@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.
*/