Skip to content

Instantly share code, notes, and snippets.

View anaisbetts's full-sized avatar

Ani Betts anaisbetts

View GitHub Profile
@anaisbetts
anaisbetts / marvel-guide.md
Created April 27, 2026 12:43
Essential Marvel Cinematic Universe viewing guide for first-time watchers

Marvel Cinematic Universe: Essential Viewing Guide

For someone who has never seen any MCU movies and wants the overarching story to make sense.


The Minimum Essential List (~12 movies)

These are the ones that actually matter for understanding the overarching plot, the Infinity Stones, and why the team fractures the way it does:

x.com##div[aria-label="Trending"]
x.com##a[aria-label="Twitter Blue"]
x.com##a[aria-label="Premium"]
x.com##header h1[role~="heading"]
x.com##a[aria-label='Verified Organizations']
x.com##article:has(svg[aria-label^="Verified"])
x.com##[aria-label="Verified"]
@anaisbetts
anaisbetts / claude-yolo
Created July 3, 2025 17:19
Scripts for vibe coding
#!/bin/bash
## Run latest Claude Code but with all the security prompts disabled
set -euo pipefail
NPX="npx"
if command -v bunx >/dev/null 2>&1; then
NPX="bunx"
fi
@anaisbetts
anaisbetts / Accessibility.cs
Created November 15, 2024 20:52
Accessibility APIs mapped for Xamarin .NET 8.0 macOS
using System;
using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using CoreFoundation;
using CoreGraphics;
using Foundation;
using ObjCRuntime;
namespace HIServices
@anaisbetts
anaisbetts / Actions.kt
Created April 11, 2024 17:41
Actions in Compose
import android.util.Log
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.currentCoroutineContext
@anaisbetts
anaisbetts / check-dmesg.sh
Last active March 11, 2024 21:32
Check dmesg with AI
#!/bin/bash
set -eu
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
export OPENAI_API_KEY='sk-your-openai-key'
journalctl --since "24 hours ago" --no-pager -k | npx typechat-cli@latest -s "$SCRIPT_DIR/dmesg-scan.ts"
@anaisbetts
anaisbetts / main.py
Last active September 22, 2023 17:25
Make a sane HTTP API for Vestaboard
import os
import vestaboard
import json
import threading
from dotenv import load_dotenv
from flask import Flask, request
load_dotenv()
@anaisbetts
anaisbetts / Buzzer.cs
Created January 1, 2022 17:28
Doorbell Automation
namespace HomeDotAnaisDotDev;
using System;
using System.Linq;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using HomeAssistantGenerated;
using NetDaemon.Common;
using NetDaemon.HassModel.Common;
EnumDisplaySettings
ChangeDisplaySettingsExW
export abstract class Result<T> {
abstract isOk(): boolean;
abstract isErr(): boolean;
abstract ok(): T | undefined;
abstract err(): Error | undefined;
static Ok<T>(val: T): Result<T> {
return new OkValue(val);
}