Skip to content

Instantly share code, notes, and snippets.

View mvandermeulen's full-sized avatar

Mark mvandermeulen

  • Fivenynes
  • Sydney, Australia
  • 03:59 (UTC +10:00)
View GitHub Profile
@AdamOlszewskiIT
AdamOlszewskiIT / election-manager.py
Created January 7, 2025 13:51
Redis - master slave election manager
import time
import threading
import uuid
from fastapi import FastAPI
from redis import Redis
# Configuration
REDIS_HOST = "localhost"
REDIS_PORT = 6379
MASTER_KEY = "master"
@gc-victor
gc-victor / software_engineer_system_prompt
Created January 7, 2025 09:27
Software Engineer System Prompt
<system_prompt>
<identity>
<role>You are a highly skilled software engineer with extensive knowledge across multiple programming languages, frameworks, design patterns, and best practices.</role>
<characteristics>
- Emulates highly proficient developers
- Provides clear, efficient, and concise coding solutions
- Maintains friendly and approachable demeanor
- Stays up-to-date with latest technologies and best practices
- Focuses on modern web development
- Knowledge spans various programming languages and frameworks
@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active September 24, 2025 11:27
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@ruvnet
ruvnet / SynthLang.md
Created January 5, 2025 03:18
SynthLang is a hyper-efficient prompt language designed to optimize interactions with Large Language Models (LLMs) like GPT-4o by leveraging logographical scripts and symbolic constructs.

SynthLang: A Hyper-Efficient Prompt Language for AI

SynthLang is a hyper-efficient prompt language designed to optimize interactions with Large Language Models (LLMs) like GPT-4o by leveraging logographical scripts and symbolic constructs. By compressing complex instructions into fewer tokens (reducing token usage by 40–70%), SynthLang significantly lowers inference latency, making it ideal for latency-sensitive applications such as high-frequency trading, real-time analytics, and compliance checks.

Additionally, SynthLang mitigates English-centric biases in multilingual models, enhancing information density and ensuring more equitable performance across diverse languages. Its scalable design maintains or improves task performance in translation, summarization, and question-answering, fostering faster, fairer, and more efficient AI-driven solutions.

Large Language Models (LLMs) such as GPT-4o and Llama-2 exhibit English-dominant biases in intermediate embeddings, leading to inefficient and oft

@erikj27
erikj27 / pydantic-ai_summary.md
Last active June 6, 2025 04:01
Documentation for pydantic-ai

Repository Overview

Directory Structure

pydantic-ai
├── LICENSE
├── Makefile
├── README.md
├── docs
│   ├── _worker.js
@retsl
retsl / ClipGuard.swift
Last active September 2, 2025 20:54
A proof of concept to authorise copy/paste events between a Mac host and VM
/*
OVERVIEW
--------
* Assumes that it is safe to allow untrusted hosts to connect via (properly configured) SSH
* The options for authorized_keys are taken from forgejo's authorized_keys[^authorized_keys],
so they should provide enough isolation
* Uses swift to be able to display the VM name and action (copy/paste) in the Touch ID prompt
* This does not seem to be possible with sudo, which afaict is the only way to launch a Touch ID
prompt from the shell
* With the text used for Touch ID prompts hardcoded in the authorized_keys commands, VMs shouldn't
@alnutile
alnutile / claude_install_notes.md
Created January 1, 2025 07:11
All the install notes from Claude

N8N Running on Main Server

Here's a comprehensive README for setting up n8n on Ubuntu with Nginx:

n8n Server Setup Guide

Prerequisites

  • Ubuntu Server
  • Node.js >= 18.17
import os
import json
import pymongo
import redis
import pyodbc
from dotenv import load_dotenv
from datetime import datetime
from file_handler import FileHandler
import schedule
import time
import json
import logging
import asyncio
import websockets
from typing import Dict, List, Optional, Set
from datetime import datetime
import hmac
import base64
import time
import redis