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 / sint23.txt
Last active November 8, 2023 16:16
Sinterklaas Lootje 2023
Hey Sinterklaas,
Voor de liefhebber:
be 1b 01 bf 00 80 ac 34 69 84 c0 74 03 aa eb f6 b4 09 ba 00 80 cd 21 b4 4c cd 21 3a 00 07 1d 0c 1b 02 05 08 08 1a 49 05 06 06 1d 03 0c 49 5b 59 5b 5a 49 41 01 1d 1d 19 1a 53 46 46 10 06 1c 1d 1c 47 0b 0c 46 0f 03 3b 0a 20 2b 39 39 19 50 59 56 1d 54 5b 5c 40 63 63 21 0c 10 49 03 0c 49 01 0c 0b 1d 49 01 0c 1d 49 05 06 06 0d 03 0c 49 0e 0c 1d 1b 06 02 02 0c 07 49 1f 08 07 49 0c 0c 07 0c 49 2b 08 1a 1a 00 0c 2b 28 3a 49 0d 0c 1b 49 39 05 08 1d 06 1a 45 49 41 01 1d 1d 19 1a 53 46 46 10 06 1c 1d 1c 47 0b 0c 46 50 3e 1c 03 01 21 0a 38 01 51 02 56 1d 54 5a 50 5d 51 40 63 3e 08 1d 49 05 0c 1c 02 49 07 1c 49 04 08 0e 49 03 0c 49 13 06 06 00 49 1f 06 06 1b 49 01 0c 04 49 0e 08 08 07 49 02 06 19 0c 07 49 1d 0c 1b 1e 00 03 05 49 03 0c 49 0d 08 1d 49 0c 00 0e 0c 07 05 00 03 02 49 07 00 0c 1d 49 1e 00 05 1d 49 0d 06 0c 07 52 49 41 01 1d 1d 19 1a 53 46 46 10 06 1c 1d 1c 47 0b 0c 46 5b 51 0f 06 0e 07 0e 26 24 31 2c 56 1d 54 51 5a 51 40 63 06 04 49 01 0c 1d 49 1d 06 0a 01 49 1e 08 1d 49 0
@bplaat
bplaat / config.json
Created November 3, 2023 08:29
BassieLight Stamlokaal config
{
"name": "Stamlokaal",
"version": "0.1.0",
"author": "Bastiaan van der Plaat <[email protected]>",
"fixtures": [
{
"name": "led1x1",
"label": "LED 1x1",
"type": "p56led",
"addr": 1
@bplaat
bplaat / convert.js
Last active October 24, 2023 19:16
Node.js script to convert Google Maps Saved Places to SerenityOS Maps Favorite format
const fs = require('fs');
const data = JSON.parse(fs.readFileSync('Saved Places.json').toString());
const favorites = data.features
.filter(place => place.geometry.coordinates[0] != 0 && place.geometry.coordinates[1] != 0)
.map(place => {
return {
name: place.properties.location.name,
latitude: place.geometry.coordinates[1],
longitude: place.geometry.coordinates[0],
zoom: 17
@bplaat
bplaat / wishlist.md
Last active August 29, 2025 09:51
My SerenityOS Wishlist - road to daily driver?

My SerenityOS Wishlist - road to daily driver?

Mady by Bastiaan van der Plaat

Easy (short term)

  • Symbolic links and desktop:
    • Taskbar: Drag quick launch items to desktop to create desktop symlink
    • FileManger: Right click drag Windows like contextmenu to create shortcut
    • Desktop: Reorder desktop items in a grid save x y location
  • Desktop: A macOS like mission control function: window overview
  • Maps: ip based geolocation, WiFi mac addresses based geolocation
@bplaat
bplaat / Cargo.toml
Created February 2, 2023 12:19
A simple rust blink program for Arduino Uno
[package]
name = "blink"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.dev]
panic = "abort"
@bplaat
bplaat / Cargo.toml
Created February 1, 2023 13:15
A simple rust program without stdlib that links to the win32 libs
[package]
name = "bassietest"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.dev]
panic = "abort"
@bplaat
bplaat / vera.asm
Created October 15, 2022 19:07
Commander X16 - Vera display text program
; Commander X16 - Vera display text program
; acme -f cbm --cpu 65c02 -o vera.prg vera.asm && x16emu -prg vera.prg -run
CHROUT=$FFD2
VERA_ADDR_L=$9F20
VERA_ADDR_M=$9F21
VERA_ADDR_H=$9F22
VERA_DATA0=$9F23
*=$0801
@bplaat
bplaat / hello.asm
Created October 14, 2022 11:57
Commander X16 - Hello World program
; Commander X16 - Hello World program
; acme -f cbm --cpu 65c02 -o hello.prg hello.asm && x16emu -prg hello.prg -run
CHROUT=$FFD2
*=$0801
!byte $0B, $08, $01, $00, $9E, $32, $30, $36, $31, $00, $00, $00
start:
; Clear screen
@bplaat
bplaat / mariadb-uuid-functions.sql
Last active May 1, 2023 17:45
MariaDB UUID_TO_BIN and BIN_TO_UUID pollyfills
DELIMITER //
CREATE FUNCTION UUID_TO_BIN(u CHAR(36))
RETURNS BINARY(16)
BEGIN
IF u IS NULL THEN
RETURN NULL;
END IF;
SET u = REPLACE(u, '-', '');
RETURN CONCAT(
@bplaat
bplaat / opengl.c
Created May 30, 2022 20:53
Win32 OpenGL 1.0 Example
// Win32 OpenGL 1.0 Example
// gcc opengl.c -c -o opengl.o && ld -s opengl.o -lkernel32 -luser32 -lgdi32 -lopengl32 -o opengl.exe -e _start && ./opengl
// --subsystem windows
#define UNICODE
#include <windows.h>
#include <GL/gl.h>
// Window state
wchar_t *windowTitle = L"Win32 OpenGL Example";
UINT windowWidth = 1280;