Skip to content

Instantly share code, notes, and snippets.

Karabiner layouts for symbols and navigation

Gavin Sinclair, January 2022

Introduction

I use Karabiner (configured with Gosu) to make advanced key mappings on my Apple computer. Karabiner allows you to create “layers”, perhaps simulating those on a programmable mechanical keyboard. I make good use of these layers to give me easy access (home-row or nearby) to all symbols and navigational controls, and even a numpad.

The motivation is to keep hand movement to a minimum. Decades of coding on standard keyboards has unfortunately left me with hand and wrist pain. I will soon enough own a small split keyboard which will force me to use layers to access symbols etc., so this Karabiner solution, which has evolved over months, is a training run for that.

@Jeff-Russ
Jeff-Russ / Demo: String Templates in Bash .md
Last active December 17, 2025 12:20
The best way to create a multiline document template (shell)

Demo: String Templates in Bash

The best way to create a multiline string template variable which has variables within it and contains double quotes.

IMPORTANT: The variable inserts must be assigned before the string template is declared and before it's used! EACH TIME THE INSERTS ARE MODIFIED, THE TEMPLATE MUST BE RE-RECLARED! For this reason it's sometimes handy to put the template def inside a function so you can call/re-call it before using it.

@Crocoblock
Crocoblock / reinit-wc-variation-form.js
Created February 10, 2023 08:45
JetSmartFilters JetEngine Reinit WC variations form on jet-filter-content-rendered and jet-engine/listing-grid/after-load-more
document.addEventListener( 'jet-smart-filters/inited', ( e ) => {
jQuery( document ).on( 'jet-filter-content-rendered', function( event, $provider ) {
$provider.find( '.variations_form' ).each( function() {
jQuery( this ).wc_variation_form();
});
} );
jQuery( document ).on( 'jet-engine/listing-grid/after-load-more', function( event, args, response ) {
if ( ! response.success ) {
return;
}
@roachhd
roachhd / README.md
Last active December 17, 2025 12:16
Basics of BrainFuck

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

BrainFuck Programming Tutorial by: Katie

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

INTRODUCTION

@acarril
acarril / global-protect.md
Last active December 17, 2025 12:14
GlobalProtect toggle (start/quit)

Regain control over the annoying GlobalProtect macOS install

I need to use GlobalProtect because it's becoming the only VPN to access resources in my school. The VPN client is simple enough, but it does two annoying things:

  1. Registers itself to autostart on login
  2. Doesn't provide you with a simple 'quit' action

Here I'll show you how I fixed both issues in macOS 12.2 (Monterey).

image

@ruvnet
ruvnet / Sora-prompts.md
Last active December 17, 2025 12:13
Crafting Cinematic Sora Video Prompts: A complete guide

300+ Cinematic Sora Video Prompts

Introduction to Cinematic Sora Video Prompts

Welcome to the Cinematic Sora Video Prompts tutorial! This guide is meticulously crafted to empower creators, filmmakers, and content enthusiasts to harness the full potential of Sora, an advanced AI-powered video generation tool.

By transforming textual descriptions into dynamic, visually compelling video content, Sora bridges the gap between imagination and reality, enabling the creation of professional-grade cinematic experiences without the need for extensive technical expertise.

What This Tutorial Offers

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active December 17, 2025 12:17
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:

Orchestrator Agent Creation Guide

This document provides a comprehensive guide for creating Orchestrator Agents in OpenCode. Based on the reference implementation (@agent/orchestrator.md), this guide details the structure, patterns, and best practices for building intelligent routing agents.

1. Overview

An Orchestrator Agent serves as a central dispatch system. Unlike standard agents that execute tasks, an orchestrator's sole purpose is to analyze user requests and delegate work to specialized subagents.

Core Characteristics

@DanCouper
DanCouper / if_programming_languages_were_cars.md
Last active December 17, 2025 12:05
If programming languages were cars...

Ada is a tank. A butt-ugly tank that never breaks down. People laugh uncontrollably if you tell them you drive Ada, but really, do you want to be driving a sports car in a war zone? (from Amit Dubey)

Assembly Language is a bare engine; you have to build the car yourself and manually supply it with gas while it's running, but if you're careful it can go like a bat out of hell.

(From "Subterfug" off digg.com:) Assembly Language: you are the car.

Basic is a simple car useful for short drives to the local shops. Once popular with learner drivers, it has recently been stripped down to a shell and rebuilt by a major manufacturer, The new version has been refurbished for longer journeys, leaving only cosmetic similarities to the original model. (from Przemyslaw Wrzos)

C is a racing car that goes incredibly fast but breaks down every fifty miles.

@peterhellberg
peterhellberg / minimal-htmx-todo.go
Last active December 17, 2025 11:59
A single Go file HTMX Todo list example, using no third party Go dependencies.
package main
import (
"context"
"crypto/rand"
"encoding/hex"
"fmt"
"html/template"
"net/http"
"os"