Skip to content

Instantly share code, notes, and snippets.

@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
@ryan-williams
ryan-williams / office-supplies.md
Last active January 23, 2022 18:04
Desk/office/computer equipment I like+use

Some desk/office/computer equipment I like:

Basic laptop + large external monitor setup

@ryan-williams
ryan-williams / brompton-nitto-rack-install.md
Last active September 30, 2021 16:10
Brompton Electric / Nitto rack install

I hit some issues installing a Nitto BM-5R rack (1, 2) on my Brompton Electric:

Brompton Nitto rack partial install

Having fastened 3 of the 4 rack/stay mount points (as well as 2 stay-frame points and the rack/fender/frame and rack/fender points), the 4th rack/stay mount is misaligned beyond my ability to force it into place.

I'm not sure if I've installed it incorrectly, or what. The light cable is also ≈½" too short to reach the light-mount points on the back of the rack.

Here are some close-ups:

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ryan-williams
ryan-williams / chain-example.ipynb
Last active March 30, 2020 04:55
A couple example notebooks associated with https://github.com/dask/dask/pull/6038 (`to_sql` support for Dask DataFrames)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.