Skip to content

Instantly share code, notes, and snippets.

View ArnaudLigny's full-sized avatar
🤵

Arnaud Ligny ArnaudLigny

🤵
View GitHub Profile
@flamerix-ai
flamerix-ai / README.md
Last active November 18, 2026 19:30
Claude Code burns ~15-20% of your tokens on a 3-word status line: a Bun preload that turns agent_summary off · by Flamerix AI, flamerix.ai · MIT

Claude Code burns ~15–20% of your tokens on a 3-word status line. Here's how to turn it off

by Flamerix AI · MIT License

Platforms: Linux and Windows 11 tested by us; macOS reported by others. Tested on Claude Code 2.1.257–2.1.317. The binary is not modified (BUN_OPTIONS=--preload). An update can silently undo it, so see Verify.

TL;DR

Every ~30 seconds, Claude Code re-sends each background agent's full transcript to the model to

@nileane
nileane / Instagram-force-video-controls.user.js
Last active September 2, 2025 17:26
Force HTML video controls on Instagram Reels
// ==UserScript==
// @name Instagram Force Video Controls (No Overlay)
// @namespace https://github.com/nileane
// @version 1.0
// @description Force-enable HTML controls on all Instagram videos and remove overlay UI
// @author Niléane
// @match https://www.instagram.com/*
// @run-at document-idle
// @grant none
// ==/UserScript==
@hopeseekr
hopeseekr / StackOverflow Stats.md
Last active July 3, 2026 20:15
StackOverflow Dec 2024 stats

Disclaimer: I'm in the Top 1% of StackOverflow contributors with 23,315 rep points.

I asked 1 high-quality question in 2024, and it was closed almost immediately, and I haven't engaged with the site since.

If someone with 20,000+ karma has their nicely-formatted questions closed so quickly, what must the newbies and rank-in-file encounter? This is probably a big reason why it's declining.


@barryels
barryels / export-google-podcasts-subscription-list-to-opml.js
Last active November 17, 2023 14:25
Export Google Podcasts subscription list to OPML
// 1. Visit https://podcasts.google.com/subscriptions
// 2. Open your browser's JavaScript console
// 3. Copy-paste the below snippet and press enter:
console.log(`<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<opml version="1.0">
<head>
<title>Google Podcasts Feeds</title>
</head>
<body>
@Karobwe
Karobwe / 00 - how-to-use-twig-embed-tag.md
Last active March 20, 2024 10:23
Showcase on how to use Twig's embed tag (supposing a Symfony app with Tailwind)

While working on a complex HTML structure, to facilitate readability of my Twig template, I divided my file onto many partial templates. In most case it's working well, but sometimes you need to use Twig blocks defined in partial templates across many files. But include will not let you overriding blocks defined in partial template, when extanding the main template.

To solve this, Twig provide the embed tag, but it took me some times to figure out how to use it. So here a little reminder, with the usecase on embed's doc.

preview vertical layout

@Liozon
Liozon / Edge add-on badge.md
Last active September 18, 2024 06:07
Edge "Get the add-on" badge

Badge "Get it for Microsoft Edge"

Why ?

This is a custom made badge to add on websites or pages where you link your new extension or add-on for the new Edge. This custom badge "Get it for Microsoft Edge" was made since MS doesn't have an official one yet, other than "Get it from Microsoft".

Terms of use

Feel free to use it, but please give credit for the work, thank you !

Author: Julien Muggli

@DavidWells
DavidWells / netlify-plugins.md
Last active January 2, 2022 01:49
Netlify Plugin Spec

Simple plugin

Here is a simple plugin with no config and it runs on a single lifecycle event postBuild

// Plugin code
@daviddarnes
daviddarnes / gulpfile.js
Last active June 10, 2023 01:17
Import your Ghost posts into a Jekyll project using Gulp
const File = require('vinyl');
const gulp = require("gulp");
const Handlebars = require('handlebars');
const streamArray = require('stream-array');
const ghostContentAPI = require("@tryghost/content-api");
const api = new ghostContentAPI({
url: 'https://demo.ghost.io',
key: '22444f78447824223cefc48062',
version: "v4"
@kantoniak
kantoniak / FigureExtParsedown.class.php
Last active July 26, 2026 15:10
Parsedown extension to wrap single-image lines in <figure>, not <p>. Public domain. See https://github.com/erusev/parsedown/issues/180#issuecomment-451486639
<?php
class FigureExtParsedown extends Parsedown {
// Matches Markdown image definition
private $MarkdownImageRegex = "~^!\[.*?\]\(.*?\)$~";
public function __construct () {
// Add blockFigure to non-exclusive handlers for text starting with !
$this->BlockTypes['!'][] = 'Figure';
@nhoizey
nhoizey / browsing-contexts.js
Last active May 28, 2021 15:31
Get screen density and viewport width, useful for responsive web design
// get device pixel ratio in dppx
// https://github.com/ryanve/res/blob/master/res.js
var screen_density =
typeof window == 'undefined'
? 0
: +window.devicePixelRatio ||
Math.sqrt(screen.deviceXDPI * screen.deviceYDPI) / 96 ||
0
// keep only 3 decimals: http://jsfiddle.net/AsRqx/
screen_density = +(Math.round(screen_density + 'e+3') + 'e-3')