Skip to content

Instantly share code, notes, and snippets.

@miku
miku / friday.md
Created August 10, 2025 10:27 — forked from yorickdowne/friday.md
Debian 13 trixie upgrade

Debian 13

To start, read the official release notes.

If your install fits into "vanilla Debian plus maybe a handful of 3rd-party repos", then this guide for a simple upgrade to Debian 13 "trixie" from Debian 12 "bookworm" can be helpful. 3rd-party repos are handled with a find command.

Note upgrade is only supported from Debian 12 to Debian 13. If you are on Debian 11, upgrade to Debian 12 first. Then once on Debian 12, you can upgrade to Debian 13.

This guide is only for the OS itself. Applications are as plentiful as sand on the beach, and they may all require additional steps. Plan for that.

You are ChatGPT, a large language model based on the GPT-5 model and trained by OpenAI.
Knowledge cutoff: 2024-06
Current date: 2025-08-08
Image input capabilities: Enabled
Personality: v2
Do not reproduce song lyrics or any other copyrighted material, even if asked.
You're an insightful, encouraging assistant who combines meticulous clarity with genuine enthusiasm and gentle humor.
Supportive thoroughness: Patiently explain complex topics clearly and comprehensively.
Lighthearted interactions: Maintain friendly tone with subtle humor and warmth.
@miku
miku / 0.README.md
Created August 5, 2025 23:31 — forked from intellectronica/0.README.md
GPT-OSS-120b Go LISP Interpreter

Simple LISP Interpreter in Go, created by GPT-OSS-120B

  • It worked really fast (on OpenRouter)
  • I suspect this was with low reasoning effort, I don't know how to control it on OpenRouter
  • It didn't get it right on the first attempt, but after 5 round trips it worked - would have been just fine with an agent

NICE!!!


@miku
miku / marked-katex.js
Created January 30, 2025 13:03 — forked from carmel/marked-katex.js
marked with katex
import { marked } from 'marked'
import hljs from 'highlight.js'
import katex from 'katex'
marked.setOptions({
langPrefix: 'hljs lang-',
pedantic: false,
gfm: true, // 是否启动类似Github样式的Markdown
breaks: false, // 是否支持Github换行符
tables: true, // 是否支持Github形式的表格
@miku
miku / improveEdgeLabels.gvpr
Created January 28, 2025 16:15 — forked from steveroush/improveEdgeLabels.gvpr
A GVPR program to improve Graphviz edge labels
/***********************************************
1. save this file as improveEdgeLabels.gvpr
2. what it does: it allows you to re-position Graphviz edge labels
3. command line example (works with any Graphviz engine):
dot myfile.gv |gvpr -cf improveEdgeLabels.gvpr |neato -n2 -Tpng >myfile.png
4. how to use:
improveEdgeLabels adds 3 new edge attributes to Graphviz:
- labelOverlay, labelAdjust, label2Node
- they can be used separately or in combination
- if labelOverlay=true
@miku
miku / wordlist-german.txt
Created January 21, 2025 23:38 — forked from MarvinJWendt/wordlist-german.txt
All german words (german wordlist).
This file has been truncated, but you can view the full file.
AA
AAA
Aachen
Aachener
Aachenerin
Aachenerinnen
Aachenern
Aacheners
Aachens

via (https://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun)

  • zf#j creates a fold from the cursor down # lines.
  • zf/string creates a fold from the cursor to string .
  • zj moves the cursor to the next fold.
  • zk moves the cursor to the previous fold.
  • zo opens a fold at the cursor.
  • zO opens all folds at the cursor.
  • zm increases the foldlevel by one.
  • zM closes all open folds.
@miku
miku / clx.go
Created November 14, 2024 00:15 — forked from Sh4yy/clx.go
Generate CLI commands for common tasks.
package main
import (
"context"
"errors"
"fmt"
"io"
"log"
"os"
"runtime"
@miku
miku / add_gaussian_noise.py
Created October 27, 2024 12:52 — forked from Prasad9/add_gaussian_noise.py
Python code to add random Gaussian noise on images
import cv2
def add_gaussian_noise(X_imgs):
gaussian_noise_imgs = []
row, col, _ = X_imgs[0].shape
# Gaussian distribution parameters
mean = 0
var = 0.1
sigma = var ** 0.5
@miku
miku / spread.cpp
Last active September 25, 2024 12:08
4-1
/** getSpread returns the difference between the highest bid and the lowest
* offer (ask). It throws an exception, if the orders do not contain both bids
* and asks. */
double OrderBook::getSpread(std::vector<OrderBookEntry>& orders)
{
if (orders.empty()) {
return 0;
}
// https://web.stanford.edu/class/cme241/lecture_slides/Tour-OrderBook.pdf#page=3