Skip to content

Instantly share code, notes, and snippets.

View bplaat's full-sized avatar

Bastiaan van der Plaat bplaat

View GitHub Profile
@bplaat
bplaat / Cargo.toml
Last active December 11, 2025 10:08
Windows Rust Project with MSI installer example
[package]
name = "bassietest"
version = "0.1.0"
edition = "2024"
authors = ["Bastiaan van der Plaat <bastiaan.v.d.plaat@gmail.com>"]
[dependencies]
windows-sys = {version = "0.61.2", features = ["Win32_UI_WindowsAndMessaging"]}
@bplaat
bplaat / script.sh
Last active December 11, 2025 07:58
Script to extract folder from monorepo
# For macOS install git-filter-repo
brew install git-filter-repo
# Remove all git commits except touching 'bin/bible/' and 'bible/'
git filter-repo --path bin/bible/ --path bible/ --path-rename bin/bible/: --force
# Delete all inrelevant tags
git tag -l | grep -v '^bible' | xargs git tag -d
# Delete all branches except the current one
@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 November 20, 2025 20:56
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 December 9, 2025 11:45
Bassie's gitconfig
[user]
name = Bastiaan van der Plaat
email = bastiaan.v.d.plaat@gmail.com
[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"