Skip to content

Instantly share code, notes, and snippets.

View ryan-williams's full-sized avatar
🚆

Ryan Williams ryan-williams

🚆
View GitHub Profile
@ryan-williams
ryan-williams / DESCRIPTION.md
Last active August 18, 2025 22:15
state-spaces/mamba#771 - 2-way sync via github-pr.py (ryan-williams/git-helpers)

state-spaces/mamba#771 GitHub Actions CI using EC2 GPU nodes

This PR adds 4 GitHub Actions workflows that install or test mamba_ssm on EC2 GPU nodes (using [Open-Athena/ec2-gha]):

  • install.yaml: install mamba_ssm on an EC2 GPU instance (default: [g4dn.xlarge])
  • installs.yaml: run install.yaml on 6 recent versions of Mamba (2.2.{0,1,2,3post2,4,5})
  • test.yaml: run mamba_ssm tests on an EC2 GPU instance ([g5] or [g6] series)
  • tests.yaml: run test.yaml on HEAD, on a g5.2xlarge and g6.2xlarge
@ryan-williams
ryan-williams / 00-README.md
Last active August 7, 2025 18:42
Vimium configs

.vimium-rc

[Vimium] configs

Import vimium-options.json into the extension's settings page.

For reference, here's the extracted keyMappings section:

$ cat vimium-options.json | jq -r .keyMappings
# Insert your preferred key mappings here.
@ryan-williams
ryan-williams / emoji.md
Last active August 11, 2025 20:24
"What's that modifier key emoji called, in the macOS unicode picker?"
  • ⌘ (Command): Place of Interest Sign
  • ⌥ (Option): Option Key
  • ⌃ (Control): Up Arrowhead
  • ⇧ (Shift): Upwards White Arrow

I can never remember how to get the "command" emoji ⌘ in the cmd-ctrl-space unicode picker:

Screenshot 2025-07-30 at 10 52 58 PM

This UX was always bad, but some recent (2024?) macOS update made it even worse 😵‍💫.

@ryan-williams
ryan-williams / path-qr.md
Last active December 28, 2024 02:09
QR codes for the Hudson County Complete Streets campaign for increased PATH train service
@ryan-williams
ryan-williams / census-tissue-hist.png
Last active December 9, 2024 16:55
Histogram of cells' tissue types in the CELLxGENE Census
census-tissue-hist.png
@ryan-williams
ryan-williams / hash-files.md
Last active August 8, 2024 15:17
Standalone script that mimics GitHub Actions' hashFiles helper

hash-files.py

Standalone script that mimics [GitHub Actions' hashFiles helper][hashFiles docs] ([used by actions/setup-python][PipCache], and frequently with [actions/cache])

Upstream hashFiles source is [here][hashFiles source], this script was written while debugging [setup-python#919].

Examples

git clone https://gist.github.com/ryan-williams/2e616363c68072bf67cad675fcb18f3b hashfiles-gist
export PATH=$PATH:$(pwd)/hashfiles-gist
@ryan-williams
ryan-williams / 00-README.md
Last active May 1, 2024 17:41
Minimal TileDB-SOMA source build on an EC2 Graviton instance

Build [TileDB-SOMA] on EC2 [Graviton] (ARM) instance

Launch instance

Using [launch_instance.py]:

eli -a ami-0c29a2c5cf69b5a9c -i r7g.4xlarge

(AMI [ami-0c29a2c5cf69b5a9c]: "Canonical, Ubuntu, 24.04 LTS, arm64 noble image build on 2024-04-23")

Install system deps + [TileDB-SOMA]

@ryan-williams
ryan-williams / parquet2json-install-error.md
Created October 22, 2023 19:33
`cargo install parquet2json` error

From jupiter/parquet2json#19:

  Installing parquet2json v2.0.2 (/home/ubuntu/c/parquet2json)
    Updating crates.io index
   Compiling libc v0.2.149
   Compiling proc-macro2 v1.0.69
   Compiling unicode-ident v1.0.12
   Compiling autocfg v1.1.0
   Compiling cfg-if v1.0.0
   Compiling version_check v0.9.4