Skip to content

Instantly share code, notes, and snippets.

View anthonywu's full-sized avatar

Anthony Wu anthonywu

View GitHub Profile
@anthonywu
anthonywu / SETUP.md
Last active January 12, 2026 08:16
Android Debian VM: System Setup Guide

System Setup Guide

This document outlines the steps taken to initialize the development environment.

Dependency Graph

  1. System Tools: apt, zsh, emacs, ssh
  2. Infrastructure: Docker, Caddy, Tailscale
  3. Runtimes: Python (via uv), Bun
  4. Shell Environment: Oh My Zsh
@anthonywu
anthonywu / llm_cli.md
Created November 2, 2025 16:31
One liner shell command LLM helper

Usage

bind cmd or even shorter shell alias for "ask an LLM to create a shell cmd for me"

  • alias cmd='llm cmd -m gpt-5'
  • alias cmd='llm cmd -m anthropic/claude-3-7-sonnet-latest'
  • alias vision-desc='llm -m llama3.2-vision:latest '\''describe'\'' -a'
$ cmd how do I trim the first 5 seconds off of a video movie.mp4
import { Template, defaultBuildLogger } from "e2b";
import { template } from "./template";
async function main() {
await Template.build(template, {
alias: "ploy-sandbox-1-dev",
cpuCount: 2,
memoryMB: 4096,
onBuildLogs: defaultBuildLogger(),
});
@anthonywu
anthonywu / hanging_output.log
Last active October 23, 2025 22:20
E2B npm run next app sandbox test
✘ anthonywu@lunar-shadow  ~/workspace/makeme-dev/src/e2b-sandbox-1   e2b-sandbox-starter ±  bun run test-1
$ dotenvx run -f .env.local -- tsx ./test_1.ts
[dotenvx@1.51.0] 📡 radar: off
[dotenvx@1.51.0] injecting env (3) from .env.local
{
exitCode: 0,
error: undefined,
stdout: 'Filesystem Size Used Avail Use% Mounted on\n' +
'/dev/root 24G 4.0G 20G 17% /\n',
stderr: ''
@anthonywu
anthonywu / bin_files
Created October 20, 2025 20:37
cloudflare sandbox info
root@5497b6792fcd:/container-server# /bin/ls
/usr/local/bin/* /usr/bin/*
'/usr/bin/['
/usr/bin/aarch64-linux-gnu-addr2line
/usr/bin/aarch64-linux-gnu-ar
/usr/bin/aarch64-linux-gnu-as
/usr/bin/aarch64-linux-gnu-c++filt
/usr/bin/aarch64-linux-gnu-cpp
/usr/bin/aarch64-linux-gnu-cpp-11
/usr/bin/aarch64-linux-gnu-dwp
@anthonywu
anthonywu / generate_before_after_scheduler_refactoring
Last active August 30, 2025 07:10
mflux 0.9.0 scheduler sigmas snapshot for unit testing
#!/bin/bash -e
common_seed=12345
common_args="--steps 20 --prompt sunset --seed 12345"
uvx --from mflux==0.9.0 mflux-generate --model dev --output sunset_dev_before.png $common_args
uvx --from mflux==0.9.0 mflux-generate --model schnell --output sunset_schnell_before.png $common_args
mflux-generate --scheduler linear --model dev --output sunset_dev_after.png $common_args
@anthonywu
anthonywu / sec_check_exfiltration.md
Created July 24, 2025 21:34
/sec_check_exfiltration

Use a sub-agent: check this repo for virus, malware, trojan horse behavior or anything that might be obfuscated but is one of these attack vectors.

Specifically:

  1. Maintainer information - does the code authors use real names or work with recognizable organizations and companies

  2. Unexpected commits - has there been a commit by a maintainer who is not usually making contributions

  3. Frequency and recency of the updates - does it look like the library is minding the updates or its own dependencies

@anthonywu
anthonywu / sample_plist_reader.py
Created December 2, 2020 06:12
sample_plist_reader
import os
import pathlib
import plistlib as pl
import pprint
f = 'com.apple.finder.plist'
with open(os.path.expanduser(pathlib.Path('~/Library/Preferences/') / f), 'rb') as fp:
data = pl.load(fp, fmt=pl.FMT_BINARY)
pprint.pprint(data)
@anthonywu
anthonywu / Dockerfile
Last active June 4, 2019 05:00
Cloudflare Workers wrangler CLI workspace
FROM ubuntu:bionic-20190515
# rustup: requires curl or wget
# wrangler: cargo install requires gcc, pkg-config and libssl-dev
# wrangler generate: requires git
RUN apt update && \
apt install -qy curl emacs gcc git libssl-dev pkg-config wget && \
apt -y full-upgrade
# wrangler build: requires npm nodejs
Verifying my Blockstack ID is secured with the address 1Bv8Wq5jPv8RtWEGH7wEwGZ6fucsCzyBvA https://explorer.blockstack.org/address/1Bv8Wq5jPv8RtWEGH7wEwGZ6fucsCzyBvA