Skip to content

Instantly share code, notes, and snippets.

View metafeather's full-sized avatar

Liam Clancy metafeather

View GitHub Profile
@metafeather
metafeather / index.md
Last active October 12, 2022 12:53
Learning the ML Tech Stack in 2022

Human Native AI—written evidence (LLM0119) - House of Lords Communications and Digital Select Committee inquiry: Large language models https://committees.parliament.uk/writtenevidence/127523/pdf/

Apple, Nvidia, Anthropic Used Thousands of Swiped YouTube Videos to Train AI https://simonwillison.net/2024/Jul/18/youtube-captions/

✭Apple, Nvidia, Anthropic Used Thousands of Swiped YouTube Videos to Train AI | WIRED https://www.wired.com/story/youtube-training-data-apple-nvidia-anthropic/

✭Breaking Down What’s at Stake in Music’s AI Lawsuits

@metafeather
metafeather / SlackChannelHide-2024-10-31.user.js
Created October 31, 2024 15:44
Userscript - SlackChannelHide
// ==UserScript==
// @name SlackChannelHide
// @namespace http://metafeather.net/
// @version 2024-10-31
// @description You can hide and open "CHANNELS" on Slack Web Client using Ctrl+S
// @author metafeather
// @match https://app.slack.com/client/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=slack.com
// @grant GM_addStyle
// @run-at document-start
@metafeather
metafeather / index.ts
Created January 14, 2025 12:56
a promisified version of setTimeout
// ref: https://mrcoles.com/implementing-sleep-javascript-promise/
const sleep = (delay, resolveValue) => new Promise((resolve) => {
setTimeout(() => resolve(resolveValue), delay);
});
const sleep = <T extends any>(
delay: number,
resolveValue?: T
): Promise<T> =>
@metafeather
metafeather / Caddyfile
Created April 14, 2025 21:49
Standalone Caddy v2 file browser for local Markdown documentation.
# Standalone Caddy v2 file browser for local Markdown documentation.
# Renders local *.md files as HTML with a Github-flavored theme.
# Treats README.md as in index file if present.
(markdown-render) {
respond `
<!doctype html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
@metafeather
metafeather / Caddyfile
Created April 14, 2025 22:04
Serve Caddy v2 as an Ingress behind LB and Nginx with full TLS, HTTP/2 and gRPC support
{
debug
# Will issue SSL certs that have external DNS setup pointing to the LB
# and issue a HTTP-01 challenge to http://domain.org/.well-known/acme-challenge/
# This means Ingress must do ssl-passthrough but not do a ssl-redirect
email <redacted>
acme_ca https://acme-v02.api.letsencrypt.org/directory
# email <redacted>
# acme_ca https://acme-staging-v02.api.letsencrypt.org/directory