Skip to content

Instantly share code, notes, and snippets.

@fnky
fnky / ANSI.md
Last active December 20, 2025 00:11
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@valinet
valinet / README.md
Last active December 20, 2025 00:10
Get dark command windows all the time in Windows

Case study: Get dark command windows all the time in Windows

TL;DR

  1. Make a copy conhost.exe from System32.
  2. Open it with a hex editor (I use HxD).
  3. In HxD, go to Search - Find - Hex-values.
  4. Search for 881d9e530a004885c07477ff15b32e08009084c0.
  5. In Windows 10 version 2004, replace ff15b32e0800 with 909090909090. If using Windows 10 version 20H2, replace ff15b32e08009084 with 9090909090909090.
  6. Save file and copy it back to System32 (take ownership of original conhost.exe in order to replace it).
  7. Profit!
@bgauryy
bgauryy / claude_code_tools_cli.md
Created October 17, 2025 13:49
Internal claude code tools implementaion

Claude Code Internal Tools - Technical Reference

Complete technical documentation of Claude Code's internal tools

This document provides comprehensive technical details about Claude Code's internal tools, including parameter schemas, implementation behaviors, and usage patterns.

Claude Sonnet 4.5

Technical Details:

@alexewerlof
alexewerlof / nano-banana-structured-json-prompt
Created December 19, 2025 17:44
Nano Banana structured JSON prompt Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Nano Banana (Gemini 3 Pro) Ultimate Image Schema",
"description": "The definitive structured prompting schema for high-fidelity image generation. Includes advanced photography, multi-subject control, and text rendering.",
"type": "object",
"required": ["meta", "subject", "scene"],
"properties": {
"user_intent": {
"type": "string",
"description": "A natural language summary of your goal (e.g., 'Me high-fiving Batman in a neon city'). Useful for logging."

Ghostty Keyboard Shortcuts

Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.

Window Management

Action Windows/Linux macOS
New window Ctrl+Shift+N Cmd+N
Close window Alt+F4 Cmd+Shift+W
#!/usr/bin/env ruby
# Archive linkding bookmarks to Markdown files
# Can use [Gather](https://brettterpstra.com/projects/gather-cli/)
# for conversion (if installed), or use Marky
# the Markdownifier (web-based).
#
# See options below for configuration
#
# This script is designed to run once initially, and then
# be set to run in the background at intervals using cron
@chamara-senarath
chamara-senarath / keymap.json
Last active December 19, 2025 23:50
Zed keymap.json
[
{
"context": "Editor",
"bindings": {
"cmd-l": "editor::ToggleFold",
"cmd-[": "pane::GoBack",
"cmd-]": "pane::GoForward"
}
},
{
@adactio
adactio / micropub.php
Last active December 19, 2025 23:47
Minimal micropub endpoint.
<?php
# Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
# http://creativecommons.org/publicdomain/zero/1.0/
$mysite = 'https://adactio.com/'; // Change this to your website.
$token_endpoint = 'https://tokens.indieauth.com/token';
$_HEADERS = array();
foreach(getallheaders() as $name => $value) {
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active December 19, 2025 23:46
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@mikermcneil
mikermcneil / disabling-macosx-notification-center.md
Last active December 19, 2025 23:43
Disable/Enable Notification Center (MacOS X)

Toggle MacOS X Notification Center on or off

This gist is to remind me (and anyone else who it helps) how to quickly disable and re-enable Notification Center.

Set Up Bash Aliases

Installation

  1. Open your terminal (<⌘ + ␣ (spacebar)>, then type "terminal", then press <↩ (enter)>).