Skip to content

Instantly share code, notes, and snippets.

@rebane2001
rebane2001 / discord-pin-compressor.html
Last active May 22, 2026 22:06
This is a simple app that converts Discord pins to Discord messages, which is useful for example when you've reached the pin limit and wish to have more room for new pins.
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Rebane's Discord Pin Compressor</title>
<meta charset="UTF-8">
<meta name="description" content="Rebane's Discord Pin Compressor">
<meta name="author" content="rebane2001">
<style>
/*

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@mexitek
mexitek / khan_marklet.js
Created September 11, 2011 01:14
Khan Academy Bookmarklet that is meant to automatically answer your current question correctly. Simply copy and paste this code into a new bookmark.
javascript:
/* Build URI endpoint for Khan API */
var url="/api/v1/user/exercises/"+userExercise.exercise+"/problems/"+(userExercise.total_done+1)+"/attempt";
/* Slowly, but surely, collecting the data for a successfull API call */
var data={
complete:1,
count_hints:0,
time_taken:Math.floor(Math.random()*10),
attempt_number:userExercise.total_done+1,
@janert
janert / running-gui-application-docker.md
Created October 12, 2022 00:27
Running GUI Applications in a Docker Container

Running GUI Applications in a Docker Container

Containers are not usually associated with GUI applications, but there may be times when one might still want to run such a program inside a container, for example to isolate the application's dependencies. Installing a GUI application in a container means that not only the application, but also all its specific dependencies are encapsulated inside the container (respectively, the container image), and can therefore reliably be removed from the system in a single step.

The primary challenge is to let a container communicate with the host's display system, so that it can create GUI windows on the host. A GUI application will likely also need to share files with the host system, which in turn requires the appropriate user permissions.

In this example, I will use the pinta paint program, which requires the Mono runtime. I do not use any other programs that depend on Mono, and as I like to keep my system installation re

@duonghuuphuc
duonghuuphuc / cs504070-casestudy-13.md
Created March 2, 2025 12:51
Case Study: Determining Microservice Boundaries in a Hospital Management System

Case Study: Determining Microservice Boundaries in a Hospital Management System

Background

CityCare Hospital operates with a legacy monolithic Hospital Management System (HMS) that handles various healthcare operations. The hospital administration has decided to migrate to a microservices architecture to improve scalability, maintainability, and performance. Your task is to analyze the monolithic system and propose a microservices-based architecture by identifying service boundaries.

Existing Monolithic System

The HMS is a single large application that includes the following functionalities:

  1. Patient Management: Registers patients, updates their information, and maintains medical history.
  2. Appointment Scheduling: Manages doctor appointments, availability, and patient scheduling.
  3. Doctor and Staff Management: Stores doctor and staff information, including credentials, schedules, and payroll.
import EmailGenerator from './EmailGenerator.ts'
it('email', async () {
new EmailGenerator().email({
id: 'password_reset',
email: 'fake@test.com'
}, 23);
});