Skip to content

Instantly share code, notes, and snippets.

View bobbigmac's full-sized avatar

Bob Davies bobbigmac

View GitHub Profile
@bobbigmac
bobbigmac / AI_Concerns_Simplified.md
Created June 16, 2025 14:27
Things about AI that I would like to see the press talk more about, mainly to better inform lawmakers.

Hidden Problems with AI That (Virtually) Nobody Talks About

Real issues affecting people right now

Rich People Get Better AI

Not All AI is Equal AI companies are run two-tier systems (many more even). People with money get faster computers, better servers, and premium services. Everyone else gets the cheap/overloaded version.

Here's the problem: when AI systems get busy, they get dumber. The cheap services handle more users per server by tuning quality parameters (among other measures), so the AI gives worse answers because it used less cycles, or stopped early, or was a little more repetitive. Schools with tight budgets buy the cheap version. Their kids get worse help with homework than rich kids using the premium version at home.

// ==UserScript==
// @name Bluesky Auto-Delete Posts After 24 Hours
// @namespace http://tampermonkey.net/
// @version 0.3
// @description Automatically delete Bluesky posts older than 24 hours using localStorage session
// @author BobBigMac (mostly Grok)
// @match https://bsky.app/*
// @grant GM_xmlhttpRequest
// @grant GM_setValue
// @grant GM_getValue
@bobbigmac
bobbigmac / convert_webp_from_downloads.js
Created August 21, 2024 22:13
Windows service to auto-convert webp found/created in the User's Downloads folder into jpg or png. Node.js-based, requires imagemagick convert
import chokidar from 'chokidar';
import { exec } from 'child_process';
import path from 'path';
import fs from 'fs';
import os from 'os';
import trash from 'trash'; // Use import instead of require
process.on('uncaughtException', function (err) {
console.error('Uncaught Exception:', err);
});
@bobbigmac
bobbigmac / base.js
Created March 29, 2022 16:48
Very simple base custom element for 'reactish' rendering
export default class BaseElement extends HTMLElement {
constructor() {
super();
this.attachShadow({mode: 'open'});
}
connectedCallback() {
this.setupTemplate();
this.render()
}
@bobbigmac
bobbigmac / redirect-from-twitter.user.js
Created October 11, 2021 05:12
Will take you to a random nice or interesting site, any time you reflexively navigate to twitter.
// ==UserScript==
// @name Random Twitter Redirect
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Go do something nice instead
// @author Me
// @match https://twitter.com/*
// @grant none
// ==/UserScript==
@bobbigmac
bobbigmac / test-freqs.sh
Last active September 29, 2021 19:14
Generate a sample preview video for each of the win_func, ascale and fscale (and others) options in ffmpegs showfreqs filter, given in input audio file
trap 'exit 130' INT
soundfile=$1
if [ ! -f "${soundfile}" ]; then
echo "Pass sound file as first parameter"
exit
fi
@bobbigmac
bobbigmac / rip_dvd
Last active August 19, 2021 12:26 — forked from postmodern/rip_dvd
Script to automate ripping DVDs using Handbrake-CLI and mkvmerge
#!/usr/bin/env bash
#
# Author: postmodern
# This fork: bobbigmac
# Description:
# Rips a DVD to one H.264 MKV file for each title.
# Ignores any bad blocks or sectors on the DVD.
# Unlike original, does not write tags
# Dependencies:
# * gddrescue
@bobbigmac
bobbigmac / perf-test.js
Created April 28, 2021 20:12
Reads a js file by filename, then executes it a given number of times, updating timings function for each executed LOC. Hacky af.
const args = process.argv || [];
const fs = require('fs');
const vm = require('vm');
// Execute as
// node perf-test.js test.js
const filename = args[2];
const runs = 100;
// ==UserScript==
// @name Delete facebook posts
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.facebook.com/bobdavies
// @icon https://www.google.com/s2/favicons?domain=facebook.com
// @grant none
// ==/UserScript==
@bobbigmac
bobbigmac / tweets-deleter.user.js
Created November 7, 2020 04:11
User script to quickly delete your own tweets by search
// ==UserScript==
// @name Delete your tweets by search
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://twitter.com/search?q=*
// @grant none
// ==/UserScript==