Skip to content

Instantly share code, notes, and snippets.

View mvandermeulen's full-sized avatar

Mark mvandermeulen

  • Fivenynes
  • Sydney, Australia
  • 18:18 (UTC +10:00)
View GitHub Profile
@mvandermeulen
mvandermeulen / building-sync-systems.md
Created June 27, 2025 18:22 — forked from pesterhazy/building-sync-systems.md
Building an offline realtime sync engine

So you want to write a sync system for a web app with offline and realtime support? Good luck. You might find the following resources useful.

Overview articles

@mvandermeulen
mvandermeulen / .cursorrules.md
Created June 27, 2025 17:33 — forked from bossjones/.cursorrules.md
cursor rules generated with the help of sonnet 3.5

Python Development Assistant Prompt System

Version Control

version: 1.0.0
last_updated: 2024-03-19
sections:
  - core_requirements
  - python_version
 - code_style

You are an expert in Python, FastAPI, and scalable API development.

Key Principles

  • Write concise, technical responses with accurate Python examples.
  • Use descriptive variable names with auxiliary verbs (e.g., is_active, has_permission).
  • Use lowercase with underscores for directories and files (e.g., routers/user_routes.py).
  • Favor named exports for routes and utility functions.
  • Follow SOLID principles and write clean code.
  • Prefer loosely coupled, cohesive interfaces.
  • High level code should depend on high level abstractions rather than low level implementations.
@mvandermeulen
mvandermeulen / redis_bytes_io.py
Created June 27, 2025 17:23 — forked from clemlesne/redis_bytes_io.py
Stream a blob with the native BytesIO and AsyncIterable Python interfaces, from async Redis.
import asyncio
import io
from asyncio import AbstractEventLoop
from collections.abc import AsyncGenerator, Awaitable, Buffer
from contextlib import asynccontextmanager
from logging import getLogger
from os import environ as env
from threading import Thread
from typing import TypeVar, cast
@mvandermeulen
mvandermeulen / Scalable_Banking_API.md
Created June 27, 2025 17:20 — forked from DebopamParam/Scalable_Banking_API.md
Scalable Banking API - Detailed Implementation Plan

Scalable Banking API - Detailed Implementation Plan

1. Architecture Overview

The Banking API requires a robust architecture to handle millions of transactions while ensuring consistency, low latency, and fault tolerance.

High-Level Architecture

Scroll down to see detailed Architecture

flowchart TD
@mvandermeulen
mvandermeulen / ex-notes.py
Created June 13, 2025 02:22 — forked from jheddings/ex-notes.py
Import Apple Notes into Notion.
#!/usr/bin/env python3
# !! NOTE - this script is no longer maintained... please see the repo for further
# updates: https://github.com/jheddings/notes2notion
# this script attempts to migrate from Apple Notes to Notion while retaining as
# much information and formatting as possible. there are limitations to the
# export data from Notes, so we try to preserve the intent of the original note.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
@mvandermeulen
mvandermeulen / ollama.md
Created March 13, 2025 00:50 — forked from loftwah/ollama.md
ollama

Complete Ollama Guide

Running GGUF Models Locally with Ollama

GGUF (GPT-Generated Unified Format) has quickly become the go-to standard for running large language models on your machine. There’s a growing number of GGUF models on Hugging Face, and thanks to community contributors like TheBloke, you now have easy access to them.

Ollama is an application based on llama.cpp that allows you to interact with large language models directly on your computer. With Ollama, you can use any GGUF quantized models available on Hugging Face directly, without the need to create a new Modelfile or download the models manually.

In this guide, we'll explore two methods to run GGUF models locally with Ollama:

@mvandermeulen
mvandermeulen / hashicorp.consul.server.plist
Created March 5, 2025 22:05 — forked from voxxit/hashicorp.consul.server.plist
LaunchAgent for Consul & Consul UI
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>hashicorp.consul.server</string>
<key>ProgramArguments</key>
<array>
@mvandermeulen
mvandermeulen / README.md
Created January 25, 2025 16:00 — forked from JKirchartz/README.md
Sed Scripts to remove stop words or common words

How to use these files

in gnu-like systems

sed -f rm-en-wordlist-on-lines.sed corpus.list > output.file

should suffice, however on OSX, it may be required to run sed like this: