Skip to content

Instantly share code, notes, and snippets.

@jesseschalken
jesseschalken / code_style.md
Last active August 31, 2026 06:22
Code style

My preferred code style is 2-space K&R. This is intended to provide a justification for this style.

Why K&R?

K&R style has the following properties:

  1. Provides symmetric size (in terms of screen space consumed) between the opening and closing syntax of a clode block.
  2. Forces no empty or meaningless lines, thereby avoiding artificial distance between related things that should be together.
  3. Consumes the minimum vertical space while keeping the opening and closing syntax of a block on separate lines from the content.
@noveogroup-amorgunov
noveogroup-amorgunov / README.md
Last active August 31, 2026 06:14
(Материалы) CodeFest 16 / System Design во фронтенде: как проходит архитектурная секция на собеседовании

(Материалы) CodeFest 16 / System Design во фронтенде: как проходит архитектурная секция на собеседовании

Скилл для подготовки к интервью

Инструкция по запуску находится в репозитории с исходным кодом: https://github.com/noveogroup-amorgunov/frontend-system-design

@magnetikonline
magnetikonline / README.md
Last active August 31, 2026 06:05
Google spreadsheet auto sort rows after cell change.

Google spreadsheet auto sort rows after cell change

Example: Spreadsheet of expenses (sheet name Expenses) starting from the sixth row (allowing for headers/etc.) with each expense date in column A. After update of any expense row date cell, all line items are automatically resorted by date.

How to implement:

  1. From Google spreadsheet goto: Extensions -> Apps Script.
  2. Enter the following JavaScript code:

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.

name code-review-turbo
description Run a triple-agent code review on the current branch's PR. Waits for Cursor Bugbot, runs a Claude sub-agent and Codex in parallel, then cross-references all findings to filter out hallucinations. Use when you want a thorough, multi-perspective code review before merging.
metadata
disable-model-invocation argument-hint
true
[pr-number]
allowed-tools Bash(gh:*) Bash(codex:*) Bash(cat:*) Bash(tee:*) Bash(sleep:*) Agent Read Grep Glob Write(/tmp/*)

Code Review Turbo

@Jonny-exe
Jonny-exe / syncthing-setup-exclusively-with-CLI.md
Last active August 31, 2026 05:59
syncthing setup exclusively with CLI

After long searching I did not find a good description of how to set up Syncthing that works exclusively via CLI without using a Web browser on the devices.

This is useful for example on a headless Raspberry Pi without proxying web-traffic through SSH or with port-forwarding limitations. In this example we will want to share the default folder from Machine A with Machine B

Machine A Machine B
@Map987
Map987 / foobar2000-dsd-sacd.md
Created April 30, 2024 02:59 — forked from milnak/foobar2000-dsd-sacd.md
[Foobar 2000 DSD and SACD support] Guide to setting up Foobar2000 player for hi-res audio (DSF, DFF, SACD, ISO)

Foobar2000 DSD and SACD support

I've successfully followed these steps to get DSD (.dsf filetype) and SACD (.iso filetype) playing at high bit rate using foobar2000 on my S.M.S.L M500 DAC.

Introduction

DSD stands for Direct Stream Digital and it is a high-definition lossless audio format with a twist. PCM signal solutions (like FLAC, TTA or APE) measure a set of bits multiple times per second to capture the audio data, hence the 16/24-bit parameter. On the other hand, DSD uses only one bit but samples it 2.8 million times a second to capture the audio signal.

ASIO Output (Required)

@iTrooz
iTrooz / main.py
Last active August 31, 2026 05:52
reMarkable 2 splash.dat converter
#!/usr/bin/env python3
"""
This script aims at converting an image to the custom format used by Remarkable 2
After running this script, move the output "splash.dat" file to /var/lib/uboot in the rM2 device
I tried this with PNG images but I guess other formats should work too since I use PIL
Syntax: ./main.py <file> [-x xOffset] [-y yOffset]
(-x and -y are the offsets of the image on the screen. If not set, the image will be centered on the screen)
Input images may need to be rotated 90 degrees before converting them
Licence: MPL 2.0
"""
@166MMX
166MMX / main.sh
Created July 9, 2020 21:17
rfc-ref
#!/bn/sh
# https://www.rfc-editor.org/rfc/rfc-ref.txt
perl -n -e 'local $\ = "\n",$,=";";/^(RFC[0-9]+) \|\s+((((, )?(RFC|RTR)[0-9]+)+)|(NIC [0-9]+))?\s+\| (.*), "(.*)"(, (RTR [0-9]+))?(, (FYI [0-9]+))?(, (BCP [0-9]+))?(, (STD [0-9]+))?(, (RFC [0-9]+))?(, (DOI [0-9]+\.[0-9]+\/RFC[0-9]+))?, ((January|February|March|April|May|June|July|August|September|October|November|December)( [0-9]{1,2})? [0-9]{4}), <(https?:\/\/.*)>\./; print $1,$2,$8,$9,$11,$13,$15,$17,$19,$21,$23,$25' rfc-ref.txt >rfc-ref.csv