Skip to content

Instantly share code, notes, and snippets.

@0187773933
0187773933 / AmazonPrimeExportWatchHistory.js
Created August 5, 2026 15:59
Amazon Prime Export Watch History
(async () => {
/** Configurable options */
const OPTION = {
/** When true, prompt the user to continue when a partial-load warning is detected. Otherwise, continue silently */
interactive: true,
/** When true, save the output as JSON. Otherwise, save it as CSV */
outputJson: false,
/** The filename to use for the output file. The file extension will be added automatically */
outputFilename: `watch-history-unique-${Date.now()}`,
};
@0187773933
0187773933 / MacOSXDisableBluetoothNotifications.py
Created July 28, 2026 17:52
Mac OSX Disable Bluetooth Notifications PopUp
#!/usr/bin/env python3
import sys
import os
import plistlib
import subprocess
import time
TARGET = "com.apple.BTUserNotifications"
CALIB_TARGET = "com.apple.iCal"
@0187773933
0187773933 / Adoption.py
Created April 20, 2026 16:24
Technology Adoption
#!/usr/bin/env python3
import requests
import pandas as pd
import numpy as np
from io import StringIO
URL = "https://ourworldindata.org/grapher/technology-adoption-by-households-in-the-united-states.csv"
print("Downloading dataset...")
@0187773933
0187773933 / AutoFijiCellCount.py
Last active April 2, 2026 04:05
Auto Fiji ImageJ Cell Count
#!/usr/bin/env python3
import sys
from pathlib import Path
from natsort import humansorted
import imagej
import scyjava
import tqdm
import openpyxl
# python3.10
@0187773933
0187773933 / PDFImageExtractorYOLO.py
Created January 18, 2026 23:27
PDF Image and Table Extractor YOLO Document Parser
#!/usr/bin/env python3
import subprocess
import tempfile
from pathlib import Path
import argparse
import cv2
from doclayout_yolo import YOLOv10
from tqdm import tqdm
@0187773933
0187773933 / ZoteroExistsSearchServer.py
Last active February 3, 2026 23:06
Zotero Already Saved / Exists Check
#!/usr/bin/env python3
import json
import sqlite3
from http.server import BaseHTTPRequestHandler, HTTPServer
from pathlib import Path
ZOTERO_DB = Path("/Users/morpheous/Zotero/zotero.sqlite")
HOST = "127.0.0.1"
PORT = 9371
@0187773933
0187773933 / timeline_of_historic_inventions.sh
Last active January 10, 2026 13:33
Timeline of Historic Inventions
#!/bin/bash
curl -s https://en.wikipedia.org/wiki/Timeline_of_historic_inventions \
| pandoc -f html -t plain \
| sed -n '/^Paleolithic/,/^See also$/p' \
| awk '
/^[[:space:]]*- / {
if (out) print out
out = $0
next
}
@0187773933
0187773933 / DumbPowerPointBatchExporter.sh
Created November 9, 2025 02:30
osascript Apple Script to Batch Export PowerPoints to PDF
#!/bin/bash
# Usage:
# ./export.sh "/path/to/folder"
folder="$(cd "$1" && pwd)"
if [[ ! -d "$folder" ]]; then
echo "Usage: $0 /path/to/ppt/folder"
exit 1
fi
@0187773933
0187773933 / CensorVideo.py
Created November 6, 2025 19:31
Censors Profanity from Video
#!/usr/bin/env python3
import sys
import string
import subprocess
import json
import unicodedata
from pathlib import Path
from pprint import pprint
import torch
import re
@0187773933
0187773933 / HNB-Lab2.html
Created August 29, 2025 13:58
Human Neurobiology - Lab 2
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Human Neurobio - Lab 2</title>
<style>
* {
margin: 0;
padding: 0;