Skip to content

Instantly share code, notes, and snippets.

@almann
almann / userChrome.css
Created June 5, 2023 19:20
Tab Tree User Chrome CSS (macOS)
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* Adapted from https://www.reddit.com/r/FirefoxCSS/comments/ao3ydl/configuring_firefox_for_tree_style_tab_usage/ */
/* hide native tabs and sidebar header */
#TabsToolbar-customization-target {
visibility: collapse;
}
#navigator-toolbox[inFullscreen="true"] #titlebar {
@almann
almann / config.toml
Created May 29, 2023 23:22
Minimal Helix Configuration
theme = "fleet_dark"
[editor]
true-color = true
@almann
almann / languages.toml
Created May 29, 2023 23:17
Helix Configure rust-analyzer to use all Cargo Features
[[language]]
name = "rust"
[language.config]
cargo.features = "all"
@almann
almann / BENCHMARKS-x86_64-Zen2-3950X.md
Created May 12, 2023 15:15
x86_64 Ryzen 3950X VarUInt Benchmarks

VarUInt Encoding

Ion v1.0 Ion v1.1
1 59.46 us (✅ 1.00x) 17.80 us (🚀 3.34x faster)
2 63.91 us (✅ 1.00x) 43.98 us (✅ 1.45x faster)
3 62.79 us (✅ 1.00x) 46.95 us (✅ 1.34x faster)
4 64.62 us (✅ 1.00x) 36.37 us (✅ 1.78x faster)
5 66.51 us (✅ 1.00x) 37.47 us (✅ 1.77x faster)
6 66.05 us (✅ 1.00x) 37.05 us (✅ 1.78x faster)
@almann
almann / BENCHMARKS-aarch64-m6g_4xlarge.md
Last active May 11, 2023 16:51
Graviton VarUInt Benchmarks

VarUInt Encoding

Ion v1.0 Ion v1.1
1 94.36 us (✅ 1.00x) 40.47 us (🚀 2.33x faster)
2 85.14 us (✅ 1.00x) 73.24 us (✅ 1.16x faster)
3 82.37 us (✅ 1.00x) 71.49 us (✅ 1.15x faster)
4 84.15 us (✅ 1.00x) 60.26 us (✅ 1.40x faster)
5 90.31 us (✅ 1.00x) 60.52 us (✅ 1.49x faster)
6 93.23 us (✅ 1.00x) 60.72 us (✅ 1.54x faster)
@almann
almann / BENCHMARKS-aarch64-M1.md
Last active May 11, 2023 16:51
M1 Pro VarUInt Benchmarks

VarUInt Encoding

Ion v1.0 Ion v1.1
1 47.28 us (✅ 1.00x) 12.95 us (🚀 3.65x faster)
2 48.37 us (✅ 1.00x) 42.65 us (✅ 1.13x faster)
3 53.42 us (✅ 1.00x) 50.65 us (✅ 1.05x faster)
4 55.95 us (✅ 1.00x) 50.11 us (✅ 1.12x faster)
5 60.75 us (✅ 1.00x) 51.60 us (✅ 1.18x faster)
6 66.08 us (✅ 1.00x) 54.14 us (✅ 1.22x faster)
@almann
almann / BENCHMARKS-x86_64-m5_4xlarge.md
Last active May 11, 2023 16:52
x86_64 VarUInt Benchmarks

VarUInt Encoding

Ion v1.0 Ion v1.1
1 99.20 us (✅ 1.00x) 37.79 us (🚀 2.63x faster)
2 89.39 us (✅ 1.00x) 62.60 us (✅ 1.43x faster)
3 76.96 us (✅ 1.00x) 59.30 us (✅ 1.30x faster)
4 75.76 us (✅ 1.00x) 42.57 us (✅ 1.78x faster)
5 85.85 us (✅ 1.00x) 42.45 us (🚀 2.02x faster)
6 88.83 us (✅ 1.00x) 42.38 us (🚀 2.10x faster)
@almann
almann / reinstall-formulas.sh
Created April 10, 2023 19:19
Homebrew Nuke/Reinstall
# make sure we have no weird aliasing (generally due to pyenv)
unalias brew
# ignore if you have a brewfile
brew bundle dump --file=macos.brewfile --force
# note that if you have cask and other things, this does not nuke that
brew remove --ignore-dependencies --force $(brew list --formula)
# reinstall from bundle
@almann
almann / rust-musl.dockerfile
Last active March 2, 2022 07:12
Simple Dockerfile for Rust Cargo/Build (testing cross compile for musl)
# Build:
# docker build -t rust-musl --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g) -f rust-musl.dockerfile $(pwd)
#
# Run:
# docker run --interactive --tty --rm --mount type=bind,source="$(pwd)",target=/workspace rust-musl
FROM ubuntu:20.04
ARG USER_ID
ARG GROUP_ID
@almann
almann / ion-rust-alpine.dockerfile
Created October 1, 2020 18:15
Simple Dockerfile for Ion Rust Cargo/Build on Alpine (specifically to test musl)
# Build:
# docker build -t ion-rust-alpine --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g) -f ion-rust-alpine.dockerfile $(pwd)
#
# Run:
# docker run --interactive --tty --rm --mount type=bind,source="$(pwd)",target=/workspace ion-rust-alpine
FROM alpine:3
ARG USER_ID
ARG GROUP_ID