Skip to content

Instantly share code, notes, and snippets.

View bplaat's full-sized avatar
💻
Working on stuff

Bastiaan van der Plaat bplaat

💻
Working on stuff
View GitHub Profile
@bplaat
bplaat / korra-processor.md
Last active August 17, 2025 06:32
The Korra 32-bit Processor
@bplaat
bplaat / Cargo.toml
Created July 29, 2025 13:53
Small Rust binary example
[package]
name = "hello"
version = "0.1.0"
edition = "2024"
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
[profile.release]
@bplaat
bplaat / macos-setup.md
Last active October 21, 2025 14:09
macOS Setup

macOS Setup

  • Setup macOS
  • Setup displays, user avatar, appearance color and wallpaper
  • Keyboard switch ctrl <-> command keys and key repeat time
  • Install homebrew
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • Install essential casks
@bplaat
bplaat / link.md
Last active January 29, 2025 12:30
JavaScript matrix benchmark
@bplaat
bplaat / sind24.md
Created November 17, 2024 14:23
Sinterklaas Lootje 2024

Sinterklaaslootje 2024

Je maakt mij het meest blij met (kan je alleen tweedehands kopen):

  • Buck Danny - De zwarte draak
  • Evert Hartman - Vechten voor overmorgen
  • Evert Hartman - Niemand houdt mij tegen
  • Evert Hartman - De vloek van Polyfemos
  • Evert Hartman - De voorspelling

Maar dit wil ik ook graag (als het te duur is betaal ik het verschil):

@bplaat
bplaat / .gitconfig
Last active January 19, 2025 20:43
Bassie's gitconfig
[user]
name = Bastiaan van der Plaat
email = [email protected]
[core]
autocrlf = false
editor = nano
[help]
autocorrect = prompt
[fetch]
prune = true
@bplaat
bplaat / README.md
Last active June 18, 2024 09:29
Python TLS Client Auth Example

Python TLS Client Auth Example

Generate certs

openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 -subj "/CN=ca" -keyout ca.key -out ca.crt

openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 -subj "/CN=localhost" -config <(cat <<EOF
[req]
x509_extensions = v3_req
[v3_req]
@bplaat
bplaat / Cargo.toml
Last active May 29, 2024 08:41
Rust raw https request example
[package]
name = "bassietest"
version = "0.1.0"
edition = "2021"
[dependencies]
anyhow = "1.0"
rustls = { version = "0.23", default-features = false, features = ["std", "tls12", "ring"] }
webpki-roots = "0.26"
@bplaat
bplaat / wpt-runner.py
Created March 26, 2024 17:35
Simple WPT tests runner script for Ladybird
#!/usr/bin/env python3
# Simple WPT tests runner script for Ladybird
# Usage: ./wpt-runner.py dom/
import subprocess
import sys
import requests
from bs4 import BeautifulSoup
bin_path = "Build/lagom/bin/Ladybird.app/Contents/MacOS"
@bplaat
bplaat / ws.c
Created November 10, 2023 16:04
A bare bones websocket client written in C
#include <stdio.h>
#include <stdint.h>
#include <time.h>
#ifdef _WIN32
#include <winsock2.h>
#else
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <unistd.h>