Skip to content

Instantly share code, notes, and snippets.

@bartleboeuf
bartleboeuf / Dockerfile
Created November 22, 2026 15:00
Strand-Decider CPU in Docker
FROM public.ecr.aws/docker/library/python:3.14-slim
RUN pip install --no-cache-dir "strands-decider[cpu]"
ARG DECISION_MODEL="StrandsAgents/strands-decider-2B-hobson-v21"
ENV DECISION_MODEL=${DECISION_MODEL}
RUN strands-decider ask ${DECISION_MODEL} \
--state "Help! My payouts have been failing for 3 days! " \
--choice "Which team should handle this?=billing,sales,retail" --device cpu
EXPOSE 8099
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
@esmaeelE
esmaeelE / XFCE Hide-Show Desktop icons
Last active November 23, 2026 14:00
Run bash script to switch between show/hide desktop icons
#!/bin/bash
OUTPUT="$(xfconf-query -c xfce4-desktop -p '/desktop-icons/style' -a)"
if [ "$OUTPUT" -eq "0" ]; then
echo "Show Desktop icons"
xfconf-query -c xfce4-desktop -np '/desktop-icons/style' -t 'int' -s '2'
elif [ "$OUTPUT" -eq "2" ];
then
name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

@dexhorthy
dexhorthy / the-no-ai-slop-manifesto.md
Last active November 23, 2026 13:59
The No AI Slop Manifesto

No AI Slop: A Manifesto

Written by the speakers and attendees of AIE Code Summit 2026

In 2001, 17 software engineers and leaders got together at a ski lodge in Snowbird, Utah to understand the biggest challenge of their time: heavyweight, documentation-driven software development processes.

Out of this we got the Agile Manifesto, four values and twelve principles that changed how most of the industry builds software.

Today we convene to build our own manifesto - the No AI Slop manifesto.

@xhit
xhit / uuidv7.php
Last active November 23, 2026 13:54
UUIDv7 in PHP
<?php
// uuidv7 see https://www.rfc-editor.org/rfc/rfc9562#name-uuid-version-7
function uuidv7() {
// current timestamp in ms
$timestamp = intval(microtime(true) * 1000);
return sprintf(
'%02x%02x%02x%02x-%02x%02x-%04x-%04x-%012x',
// first 48 bits are timestamp based
@JBlond
JBlond / bash-colors.md
Last active November 23, 2026 13:53 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@vovapi
vovapi / mg1300-region.sh
Last active November 23, 2026 13:53
GL.iNet GL-MG1300 (Mango 2) factory region editor. See https://vovapi.ru/en/notes/gl-mg1300-cn-region/
#!/bin/sh
# GL.iNet GL-MG1300 (Mango 2) factory country-code editor.
# Verified layout: firmware 4.10.1, factory = 64 KiB, country offset = 0x4088.
# Other firmware is accepted only if its device tree confirms the same layout.
#
# Usage:
# sh mg1300-region.sh # show current running region
# sh mg1300-region.sh --list # show potential country codes
# sh mg1300-region.sh DE # inspect / dry run
# sh mg1300-region.sh DE --write # back up, write, verify
@geohot
geohot / syllabus.md
Last active November 23, 2026 13:51
Compilers for Machine Learning

Compilers for Machine Learning

A hands-on one semester course where students build their own compiler from scratch, starting from elementwise programs and ending with training SOTA LLMs on GPUs. This course aggressively builds on the previous week, and is an exercise in slop management. If you let any slop in early, it will compound and you will not finish the class.

Course description: This course covers the design and implementation of a modern machine learning compiler, and examines the interaction between IR design, hardware capabilities, and the structure of machine learning programs. Topics covered include term rewriting, code generation, movement operators, kernel fusion, memory hierarchies, GPU architecture, automatic differentiation, and flash attention. It is a project course, providing experience with performance-oriented programming, managing a codebase that grows all semester, and working in 1 or 2 person teams, culminating in a compiler capable of training modern LLMs.

Prerequisites: This c

@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active November 23, 2026 13:50
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@veekaybee
veekaybee / normcore-llm.md
Last active November 23, 2026 13:43
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models