Skip to content

Instantly share code, notes, and snippets.

View dumbbell's full-sized avatar

Jean-Sébastien Pédron dumbbell

  • RabbitMQ
  • Paris, France
View GitHub Profile
@dumbbell
dumbbell / bootstrapping-rust-freebsd-aarch64.md
Last active September 15, 2023 12:17
Bootstrapping Rust and Cargo on FreeBSD/aarch64

Bootstrapping Rust and Cargo on FreeBSD/aarch64

At the time of this writing, Rust and Cargo are available on FreeBSD/amd64 and FreeBSD/i386 only, whether it is from rustup or from the FreeBSD ports tree. Here is how I could bootstrap Rust and Cargo for FreeBSD/aarch64 from FreeBSD/amd64.

Base system for the target

To be able to cross-compile anything, you need a userland for the target.

From a release

@dumbbell
dumbbell / etc-apt-preferences.d-erlang
Created November 7, 2017 16:41
Erlang version pinning (/etc/apt/preferences.d/erlang)
Package: erlang*
Pin: version 1:20.1-1
Pin-Priority: 1000
@dumbbell
dumbbell / 0000-template.md
Last active November 13, 2019 13:51
RabbitMQ RFC process

Summary

One paragraph explanation of the feature.

@dumbbell
dumbbell / vt_core.patch
Created April 12, 2023 19:40
Handle recursive panic inside vt(4)
diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c
index 267dd7bf2489..1a7a752d9a07 100644
--- a/sys/dev/vt/vt_core.c
+++ b/sys/dev/vt/vt_core.c
@@ -276,6 +276,8 @@ SYSINIT(vt_update_static, SI_SUB_KMEM, SI_ORDER_ANY, vt_update_static,
SYSINIT(vt_early_cons, SI_SUB_INT_CONFIG_HOOKS, SI_ORDER_ANY, vt_upgrade,
&vt_consdev);
+static bool inside_vtterm_done_in_panic = false;
+