Skip to content

Instantly share code, notes, and snippets.

View anthonyshew's full-sized avatar

Anthony Shew anthonyshew

View GitHub Profile
@anthonyshew
anthonyshew / benchies.sh
Last active February 25, 2026 19:46
End-to-end benchmarking in Vercel Sandbox using `sandbox` CLI
#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "$0")" && pwd)"
WARMUP=2
MIN_RUNS=15
NIGHTLY_TOOLCHAIN="nightly-XXXX-XX-XX"
LINUX_TARGET="x86_64-unknown-linux-gnu"
SNAPSHOT_ID="snap_REDACTED"
HF=/home/user/.local/bin/hyperfine
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Vercel</string>
<key>settings</key>
<array>
<!-- Global Settings -->
<dict>
@anthonyshew
anthonyshew / gist:9bfd709949f83b4acac9062787c071a7
Last active December 10, 2025 04:02
Vercel theme for opencode
{
"$schema": "https://opencode.ai/theme.json",
"defs": {
"background100": "#0A0A0A",
"background200": "#000000",
"gray100": "#1A1A1A",
"gray200": "#1F1F1F",
"gray300": "#292929",
"gray400": "#2E2E2E",
"gray500": "#454545",
@anthonyshew
anthonyshew / Deployment Notes
Last active January 30, 2022 00:14
Prisma Notes
#Prisma
There is a lot to Prisma and I don't want to forget about the various tools that it contains - particularly for deployment.
Important commands:
- `prisma generate`: Creates the TypeScript types for the database schema (Is needed for build steps and other type-checking moments)
- Use `prisma migrate deploy` for deploying testing and production changes
# Sentry
@anthonyshew
anthonyshew / gist:da954c6b8c523a7acb4ab42ee2fd1484
Created January 9, 2022 22:20
The First Action that Worked for Doggo Sports
name: publish
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@anthonyshew
anthonyshew / gist:046713e2a47aa66796c05d111d616f53
Last active January 19, 2022 02:51
How I Got Doggo Sports Deployed (on the First Try, totally)
If you don't have an ssh key already on digital ocean, create one by:
1) Open a terminal on your computer and type ssh-keygen. Hit enter.
2) Navigate to <user>/.ssh/id_rsa.pub
3) Paste the contents into the box on Digital Ocean.
TO get setup with VSCode extension for remote access thingy for the first time:
1) You'll have to do ssh root@<the ip> in the box that comes up when you go to set a new connection.
2) Click through a few prompts to make the extension happy.
You don't want to use root so let's create a new user.