Skip to content

Instantly share code, notes, and snippets.

Always Already Programming

Everyone who interacts with computers has in important ways always already been programming them.

Every time you make a folder or rename a file on your computer, the actions you take through moving your mouse and clicking on buttons, translate into text-based commands or scripts which eventually translate into binary.

Why are the common conceptions of programmer and user so divorced from each other? The distinction between programmer and user is reinforced and maintained by a tech industry that benefits from a population rendered computationally passive. If we accept and adopt the role of less agency, we then make it harder for ourselves to come into more agency.

We've unpacked the "user" a little, now let's look at the "programmer." When a programmer is writing javascript, they are using prewritten, packaged functions and variables in order to carry out the actions they want their code to do. In this way, the programmer is also the user. Why is using pre-made scripts seen

@xikhar
xikhar / metroidvania-prompt.md
Created December 1, 2026 22:06
metroidvania-prompt

Build a high quality complete pixel style metroidvania game in the browser.

Platform and constraints: It should run in the browser. Graphics drawn using webgl. Gameplay engine built on top of webgl as well, no external libraries. you need to invent all the code to make and run the game great.

First part: Research. It needs to be a Metroidvania, so research on how they look like and what are the gameplay mechanisms, camera movements, world design, Techniques to build it. Webgl things to understand. study the existing games for some references. Read ENGINE section below for what more to research on that.

Second part: reference & Design. Use PIXELGAME.jpg in main-ref folder as the source of truth. Use available models on FAL MCP to generate more reference images as you need, or any video that you need. The first part of the process is to explore reference ideas and have a concrete plan of what to build, along with what it should look like. And the entire theme should be consistent across the game. generate mo

@ruario
ruario / mac_keyboard_tweaks.md
Last active December 2, 2026 10:15
Norwegian Macbook Keyboard Tweaks (Ubuntu 24.04 and 25.10)

Norwegian Macbook Keyboard Tweaks (Ubuntu 24.04/25.10)

This patch modifies the Norwegian Macintosh keyboard layout on Ubuntu Linux to better match that of a modern Macbook's physical labels and expectations:

  • Replaces | (pipe) with ' (apostrophe) as the primary symbol for the key below esc
  • Promotes $ to Shift+4
  • Introduces € as AltGr+4
  • Demotes ¤ (currency) to Shift+AltGr+4 (since this is hardly used these days)
  • Swaps the order of the dead keys of the ´ (acute) and ​`​ (grave) acents on the key to left of backspace ←
  • Enables access to higher level symbols by setting the right-most Alt ⌥ (Option) key as AltGr
@Chripo72
Chripo72 / worker.js
Last active December 2, 2026 10:39
Cloudflare Worker for TP-Link Omada Custom Dynamic DNS config
///////
// Configuration
// If you use Cloudflare worker variables/secrets, comment the respective lines here.
///////
// Cloudflare API Secrets
const API_TOKEN = "YOUR_API_TOKEN"; // Replace with your Cloudflare API token
const ZONE_ID = "YOUR_ZONE_ID"; // Replace with your Zone ID
// Use HTTP basic authentication? - Set to false for debugging in Cloudflare code editor
@bdebon
bdebon / rodin.md
Created March 18, 2026 15:32
Rodin – Interlocuteur socratique pour discussions sociétales profondes — anti-chambre d'écho
name rodin
description Interlocuteur socratique pour discussions sociétales profondes — anti-chambre d'écho

Tu es Rodin, un interlocuteur intellectuel exigeant. Tu incarnes ce rôle pour toute la durée de la conversation. Ne brise jamais le personnage.

Activation

  1. Lis et intègre la synthèse portrait du portrait de l'utilisateur : [OPTIONEL A FAIRE DE VOTRE COTÉ] — c'est ton contexte permanent sur ton interlocuteur. Ne la résume pas, ne la mentionne pas. Intègre-la silencieusement.
@carefree-ladka
carefree-ladka / Google 2026 Interview Preparation - Complete Weekly Roadmap.mdx
Created December 31, 2025 15:09
Google 2026 Interview Preparation - Complete Weekly Roadmap

Google 2026 Interview Preparation - Complete Weekly Roadmap

image

Target: Crack Google L3/L4/L5 by 2026 Duration: 24 weeks (6 months intensive preparation) Daily Time Commitment: 3-4 hours minimum


@mmastrac
mmastrac / Wii Drive.md
Created February 5, 2017 19:32
Wii Drive Investigation

The Wii drive itself operates at the smallest possible DVD read size: a 32kB ECC block. This is the minimum that the drive can read from the disc, even if the game is asking for less data.

As game assets tend to be larger in size, the drive has a special 1MB (32 ECC block) streaming buffer that it maintains in the background. The drive will try to keep 1MB of data in memory from the last location the game requested. This streaming buffer is actually circular and will re-use old data still within the streaming buffer window. Seeking forward by more than 1MB or backward at all will destroy the buffer.

The drive has two seek speeds: short/slow and long/fast. Short seeks are slower and occur when seeking less than 1mm physically on the disc. Long seeks are much faster and occur when the drive needs to seek more than 1mm.

After completely filling the streaming buffer, the drive leaves the head parked on the track where the streaming buffer ended. If the game requests a read starting at this position it doesn't

Scaling your API with rate limiters

The following are examples of the four types rate limiters discussed in the accompanying blog post. In the examples below I've used pseudocode-like Ruby, so if you're unfamiliar with Ruby you should be able to easily translate this approach to other languages. Complete examples in Ruby are also provided later in this gist.

In most cases you'll want all these examples to be classes, but I've used simple functions here to keep the code samples brief.

Request rate limiter

This uses a basic token bucket algorithm and relies on the fact that Redis scripts execute atomically. No other operations can run between fetching the count and writing the new count.

Activate Windows with PowerShell

This method demonstrates how to activate Windows using PowerShell in administrator mode.

Steps to Activate Windows:

  1. Open PowerShell as an administrator:

    • Press Win + S, type "PowerShell," then right-click on Windows PowerShell and select Run as administrator.
  2. Run the following command: