Skip to content

Instantly share code, notes, and snippets.

View marvin-hansen's full-sized avatar
🕊️
Progressing

Marvin Hansen marvin-hansen

🕊️
Progressing
View GitHub Profile
@marvin-hansen
marvin-hansen / proton-pulumi.py
Created March 10, 2024 05:28
Proton Pulumi Deployment Descriptor
import pulumi
import pulumi_gcp as gcp
from pulumi_kubernetes import Provider, apps, core
# Define the GCP cluster.
cluster = gcp.container.Cluster("time-plus-demo",
initial_node_count=3,
node_config=gcp.container.ClusterNodeConfigArgs(
machine_type="n1-standard-1",
# Assuming default disk size and image type.
@marvin-hansen
marvin-hansen / Output.txt
Created December 14, 2023 10:21
Most weirdo messaging bug
Sending record 0
Got record: key=Some("Key 0"), value=Value 0
Got record: key=Some("Key 1"), value=Value 1
Got record: key=Some("Key 2"), value=Value 2
Got record: key=Some("Key 3"), value=Value 3
Got record: key=Some("Key 4"), value=Value 4
Got record: key=Some("Key 5"), value=Value 5
Got record: key=Some("Key 6"), value=Value 6
Got record: key=Some("Key 7"), value=Value 7
Got record: key=Some("Key 8"), value=Value 8
@marvin-hansen
marvin-hansen / LF_Checklist.md
Created July 18, 2023 07:13
Checklist for hosting DeepCausality with LF AI & Data

Checklist for hosting DeepCausality with LF AI & Data

Basic preparations in the GH org and repo

✅ Enable two-factor authentication for all members of the project’s GitHub org.

✅ Install the GitHub DCO app on all repos.

Achieve the basic OpenSSF badge

// Copyright (c) 2021. Marvin Friedrich Lars Hansen. All Rights Reserved. Contact: marvin.hansen@gmail.com
package web_socket
import (
"testing"
"time"
)
func TestNewWebSocketClient(t *testing.T) {
@marvin-hansen
marvin-hansen / setup.sh
Last active October 31, 2017 03:56
Creates a fast.ai DL environment on Google Cloud
# Preare disk
# Here sdb is the device ID I get from lsblk
# Uncomment if you want to use a shared disk.
# Details on: # https://cloud.google.com/compute/docs/disks/add-persistent-disk
# You can add a persistent disk already when creating a computing instnance
#echo "Format Disk"
#sudo mkfs.ext4 -m 0 -F -E lazy_itable_init=0,lazy_journal_init=0,discard /dev/sdb
#sudo mkdir -p /mnt/disks/data
#echo "Mount Disk"