Skip to content

Instantly share code, notes, and snippets.

@jazzdan
jazzdan / BUCK
Last active February 13, 2024 03:56
Buck2 OCI rules sketch
# Root BUCK file
http_archive(
name="dive",
urls=["https://github.com/wagoodman/dive/releases/download/v0.12.0/dive_0.12.0_linux_arm64.tar.gz"],
sha256="a2a1470302cdfa367a48f80b67bbf11c0cd8039af9211e39515bd2bbbda58fea",
strip_prefix='dive',
sub_targets=["dive"],
)
@jazzdan
jazzdan / BUCK
Created May 27, 2024 18:51
buck2 tar rules
# prelude-replay/tar/BUCK
export_file(
name="tar_file.py",
visibility=["PUBLIC"],
)
@jazzdan
jazzdan / install-extension.sh
Created June 3, 2024 18:38
Installing a Chrome extension in the Replay Browser
#!/bin/bash
url="https://chromewebstore.google.com/detail/magical-ai-writer-autofil/iibninhmiggehlcdolcilmhacighjamp"
id=$(echo "$url" | sed -n 's/.*\/\([a-z]\{32\}\)$/\1/p')
if [ -z "$id" ]; then
echo "Invalid Chrome Web Store URL."
exit 1
fi