Skip to content

Instantly share code, notes, and snippets.

View luckydonald's full-sized avatar
👀
294 people are currently looking at this profile

Lucky Lucy luckydonald

👀
294 people are currently looking at this profile
  • Some basement in Equestria.
View GitHub Profile
@badlogic
badlogic / compaction.md
Created December 2, 2025 14:11
Context Compaction Research: Claude Code, Codex CLI, OpenCode, Amp

Context Compaction

Research on how other coding assistants implement context compaction to manage long conversations.

Overview

Context compaction (also called "handoff" or "summarization") is a technique to manage the context window in long coding sessions. When conversations grow too long, performance degrades and costs increase. Compaction summarizes the conversation history into a condensed form, allowing work to continue without hitting context limits.

Claude Code

@skylord123
skylord123 / README.md
Last active August 16, 2026 20:38
Copy teams chat into markdown format

Teams Chat to Markdown Bookmarklet

Since Microsoft conveniently removed any decent way to copy Teams chats (with timestamps, names, you know—useful stuff), this bookmarklet is your only shot at getting that functionality back.

This bookmarklet allows you to extract chat messages from the Microsoft Teams web application and converts them directly into formatted Markdown. It provides an easy-to-use interface to copy and export conversations seamlessly.

🚀 Features

  • Markdown Formatting: Converts chat messages into Markdown format, including:
  • Inline code, code blocks, quotes, images, and emojis
@noaione
noaione / guide_to_ln_manga_offline_reading.md
Last active September 5, 2026 10:42
A guide to help you get the best quality for offline reading. (Not including Translation)
@inchoate
inchoate / readme.md
Last active September 18, 2026 13:25
Open clicked URLs into a particular Google Chrome profile

Finicky Configuration Guide (v3 & v4)

Problem

When I click on links from Slack or Outlook on MacOS they open in seemingly random browser windows/profiles. This is annoying.

Solution

Open links in a particular Google Chrome profile window based on the source application or URL. Be less annoyed.

  1. In Chrome, visit chrome://version and find the desired profile name. Mine was Default. Copy that profile's directory name, like Profile 2 or Default, not the profile's vanity name you see when you click on your profile icon in the browser.
  2. Install Finicky: brew install finicky. After install it should be running and you should see the icon in the upper toolbar.
  3. From the Finicky Toolbar Item, click > Config > Create New (or edit ~/.finicky.js / ~/.finicky.ts).

Version 4 (TypeScript)

@little-brother
little-brother / index.html
Created August 1, 2020 20:46
How to use nunjucks in the browser/client-side
<!doctype html>
<html>
<head>
<meta charset = "UTF-8"/>
<title>Nunjucks example</title>
<script type = "module" src = "index.js"></script>
</head>
<body>
<div id = "page-content"></div>
</body>
@etra0
etra0 / README.md
Last active December 27, 2020 19:44

I did this exercise in order to learn about internal hacking using DLL injection and interfacing ASM with Rust.

This code will not compile by itself, you need to create the rust structure which should look something like this

dll
├── Cargo.toml
├── build.rs
└── src
    ├── interceptor.asm
 └── lib.rs
@fluential
fluential / mirroring-ubuntu-ESM-repo.md
Last active October 23, 2025 22:09
How to mirror ubuntu ESM protected repository

Via https://ubuntu.com/esm#faq

"We're mirroring the repository on our internal Landscape server. Can we still get Ubuntu ESM if using Landscape? ESM is just a regular Ubuntu archive, but authenticated and served over HTTPS. Archive mirroring is already available in Landscape and is the only supported mechanism for mirroring the ESM archive."

TL;DR

It seems its just possible to use URI with login:pass

@bdombro
bdombro / .gitlfstracks
Last active October 18, 2025 11:54
Git LFS Default Tracks - Common binary file extensions
"To include this, run `cat .gitlfstrack | xargs git lfs track`"
"*.3ds"
"*.3g2"
"*.3gp"
"*.7z"
"*.a"
"*.aac"
"*.adp"
"*.ai"
"*.aif"
@Integralist
Integralist / Python Async Decorator.py
Last active June 30, 2024 09:22
[Python Async Decorator] #python #asyncio #decorator
import asyncio
from functools import wraps
def dec(fn):
@wraps(fn)
async def wrapper(*args, **kwargs):
print(fn, args, kwargs) # <function foo at 0x10952d598> () {}
await asyncio.sleep(5)
@krisnod
krisnod / gist:56ff894f400cce7c742fb11fb2fde9cf
Last active June 8, 2026 21:04
RancherOS on Hetzner using software RAID (RAID 1)
Install:
----------
* Activate Hetzner Rescue System (Debian)
* Connect to Hetzner Rescue System using SSH and live boot RancherOS
(thanks goes to William Fleurant for showing how this can be done: https://github.com/wfleurant/boot-rancheros-hetzner/)
* apt-get update
* apt-get install kexec-tools aria2