Skip to content

Instantly share code, notes, and snippets.

@mitchellhuang
mitchellhuang / plan.md
Created October 10, 2026 15:36
China 2027

China trip planning — updated handoff summary

Travelers and goals

Four American college friends, approximately age 30; three live in NYC. The organizer speaks decent conversational Chinese, visits China roughly every other year mainly to see family in Yueyang and gamble in Macau, and has visited Beijing’s major sights several times. They have otherwise explored relatively little of China, especially the southwest.

The trip should include exactly one night in Yueyang to meet family, eat crawfish, and experience a less internationally tourist-oriented Chinese city. Other priorities are southwestern China, food, neighborhood exploration, and one proper going-out night, preferably near the end.

The exit city is explicitly undecided: the group will choose between Beijing and Shanghai. Do not assume either has been selected.

@mitchellhuang
mitchellhuang / ai-agents-engineering-guide.md
Last active September 29, 2026 03:59
AI agents: a practical guide for backend and infrastructure engineers

AI agents: a practical guide for a backend and infrastructure engineer

Last reviewed: September 2026. Product APIs and capabilities change; follow the linked documentation for implementation details.

You do not need a new kind of cloud infrastructure to build an AI agent. An agent is an application in which a model helps choose what to do next, typically by requesting tools and using their results. The rest—APIs, state, execution, retries, authorization, and verification—is still software engineering.

This guide connects the vocabulary to the systems you already know, then walks through a flight-booking example and explains where SDKs, cloud platforms, and sandboxes fit.

Contents

@mitchellhuang
mitchellhuang / daily-briefing-2026-06-27.md
Created June 27, 2026 23:56
Daily Briefing — June 27, 2026

Daily Briefing — Saturday, June 27, 2026

Prepared for Mitchell Huang


📊 Markets (Fri, Jun 26 Close)

Index / ETF Change Level
@mitchellhuang
mitchellhuang / aws-ebs-csi-driver-policy-strict.json
Last active October 3, 2022 22:33
AWS EBS CSI Driver Strict Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ec2:DescribeAvailabilityZones",
"ec2:DescribeInstances",
"ec2:DescribeSnapshots",
"ec2:DescribeVolumes",
@mitchellhuang
mitchellhuang / docker-compose.yml
Created January 25, 2019 21:13
elasticsearch docker-compose
version: '2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.4
environment:
discovery.type: single-node
ports:
- 9200:9200
- 9300:9300
kibana:
@mitchellhuang
mitchellhuang / aws-alb.sh
Created December 28, 2018 23:22
AWS ELB Target Autoscaling Group
aws elbv2 create-target-group --name <target_group_name> --protocol HTTP --port 80 --vpc-id <vpc_id>
aws autoscaling attach-load-balancer-target-groups --auto-scaling-group-name <id_of_the_autoscaling_group> --target-group-arns "<new_target_group_arns>"

Keybase proof

I hereby claim:

  • I am mitchellhuang on github.
  • I am huang (https://keybase.io/huang) on keybase.
  • I have a public key ASCgSFMGl8cVQntscdsdg4N5246prkoC-Vps2sF1Su1V9go

To claim this, I am signing this object:

@mitchellhuang
mitchellhuang / checkout.js
Created February 24, 2018 06:40
Stripe Elements Next.js (works with SSR)
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
import { compose } from 'react-apollo';
import cookies from 'next-cookies';
import jsCookie from 'js-cookie';
import Script from 'react-load-script';
import { StripeProvider, Elements } from 'react-stripe-elements';
import Main from '../layouts/Main';
import withData from '../lib/withData';
import { viewerGraphql } from '../apollo/queries/viewer';
@mitchellhuang
mitchellhuang / partitions.py
Created November 21, 2014 02:01
proj4 q19 doeeeeee
def partitions(n, m):
"""Return a linked list of partitions
of n using parts of up to m.
Each partition is a linked list.
"""
if n == 0:
return link(empty, empty)
elif n < 0:
return empty
elif m == 0:
@mitchellhuang
mitchellhuang / autoexec.cfg
Created February 12, 2014 02:55
CS:GO SRCDS configs
log on