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 / copilot-instructions.md
Created March 6, 2026 14:05
Bassie's GitHub Copilot global system prompt

Never commit or do any git actions Use modern code standards, produce clean code and avoid duplications For Rust assume clippy::uninlined_format_args is always enabled For Angular projects always use zoneless only signals and modern control flow templates

@bplaat
bplaat / gh_clone.sh
Created March 5, 2026 17:21
GitHub clone script - clones all repos from an org or user
#!/bin/bash
# GitHub clone script - clones all repos from an org or user
# Usage: ./gh_clone.sh [github-org-or-user]
# If no argument provided, uses authenticated user
set -e
GITHUB_ORG="${1}"
@bplaat
bplaat / Dockerfile
Last active March 5, 2026 13:55
Wordpress with mysql-client docker container
FROM wordpress:latest
RUN apt-get update && \
apt-get install -y gnupg wget lsb-release && \
wget https://dev.mysql.com/get/mysql-apt-config_0.8.29-1_all.deb && \
DEBIAN_FRONTEND=noninteractive dpkg -i mysql-apt-config_0.8.29-1_all.deb && \
apt-get update && \
apt-get install -y mysql-client && \
rm -rf /var/lib/apt/lists/* /mysql-apt-config_0.8.29-1_all.deb
@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):