Skip to content

Instantly share code, notes, and snippets.

@wpbrown
wpbrown / build.rs
Created February 20, 2021 20:43
original build_actors
async fn build_actors<'a, A, M, IM, B, BR>(
ctx: &BcContext<'_, Self>, models: IM, builder: B,
) -> HashMap<EntityId, Addr<A>>
where
BR: Future<Output = Result<A>>,
B: Fn(&M) -> BR,
IM: Iterator<Item = &'a M>,
M: 'a + Entity + EntityStatic,
A: Actor,
{
@wpbrown
wpbrown / user-data.yaml
Created June 15, 2020 22:42
ubuntu autoinstall with btrfs subvolumes
#cloud-config
autoinstall:
version: 1
identity:
hostname: btrbox
password: "$6$exDY1mhS4KUYCE/2$zmn9ToZwTKLhCw.b4/b.ZRTIZM30JZ4QrOQ2aOXJ8yk96xpcCof0kxKwuX1kqLG/ygbJ1f8wxED22bTL4F46P0"
username: ubuntu
storage:
config:
### drive