Skip to content

Instantly share code, notes, and snippets.

View EIIisD's full-sized avatar
:atom:
Adding a GitHub profile status icon.

Ellis EIIisD

:atom:
Adding a GitHub profile status icon.
View GitHub Profile
@EIIisD
EIIisD / example-script.user.js
Created July 13, 2025 20:39
Tampermonkey Script: example-script
// ==UserScript==
// @name Example Script
// @namespace http://tampermonkey.net/
// @version 0.1
// @description A simple example Tampermonkey script.
// @author You
// @match https://*.google.com/*
// @grant GM_addStyle
// ==/UserScript==
@EIIisD
EIIisD / example-script.user.js
Last active July 13, 2025 20:38
Tampermonkey Script: example-script
// ==UserScript==
// @name Example Script
// @namespace http://tampermonkey.net/
// @version 0.1
// @description A simple example Tampermonkey script.
// @author You
// @match https://*.google.com/*
// @grant GM_addStyle
// ==/UserScript==
@EIIisD
EIIisD / superwhisper-watch.ts
Created April 29, 2025 19:42
Walks the Superwhisper recordings folder and reads each new `meta.json` file with zero copy JSON loading. It then watches the folder live and prints the finish time processing time and text as soon as a transcript saves.
import { resolve, join, sep as pathSep } from "node:path";
import { watch } from "node:fs";
import { readdir } from "node:fs/promises";
interface MetaData {
datetime: string;
processingTime: number;
result: string;
segments?: unknown[];
}
import { stdin } from "node:process";
interface SuffixRule {
re: RegExp;
rep: string;
}
const PHRASE_DICT: Readonly<Record<string, string>> = Object.freeze({
"cell phone": "mobile phone",
"french fries": "chips",
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "[email protected]",
"phone": "(123) 456-7890",
"website": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "[email protected]",
"phone": "(123) 456-7890",
"website": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {