Skip to content

Instantly share code, notes, and snippets.

@freepicheep
freepicheep / helix.ghostty
Created December 23, 2025 21:17
helix.ghostty
# Helix-mode keybindings for Ghostty.
#
# Adapted from vim.ghostty https://gist.github.com/mitchellh/1c5be5c083a2315f22f1cb8f239e9dcd
# Note: We're missing a number of actions to produce a better vim experience.
# This is what is possible today! But we plan on adding more actions to make
# this even better in the future.
# Entry point
keybind = alt+v=activate_key_table:helix
@rpavlik
rpavlik / settings.json
Last active December 24, 2025 10:58
Go away copilot and other slop machines (in vscode)
{
// go away copilot and other ai slop machines
"accessibility.verbosity.inlineChat": false,
"accessibility.verbosity.panelChat": false,
"ansible.lightspeed.suggestions.waitWindow": 360000,
"chat.agent.enabled": false,
"chat.agent.maxRequests": 0,
"chat.commandCenter.enabled": false,
"chat.detectParticipant.enabled": false,
"chat.disableAIFeatures": true,
#!/usr/bin/env bash
counter=1
echo "demo: error state"
while [ $counter -le 25 ]; do
printf "\x1b]9;4;2;${counter}\x07"
((counter++))
sleep 0.1
done
echo "demo: normal state"
@awni
awni / mlx_lm_open_webui.md
Created April 25, 2025 15:41
Open WebUI with MLX LM

Setup

Install packages:

pip install open-webui mlx-lm

Start Open WebUI server:

@cassidoo
cassidoo / simple-react-recorder.jsx
Last active August 26, 2025 07:45
A simple React microphone component, recording audio and showing the blob in the browser, styled with Tailwind.
"use client";
import { useState, useEffect, useRef } from "react";
function SimpleRecordButton() {
const [isRecording, setIsRecording] = useState(false);
const [audioStream, setAudioStream] = useState(null);
const [mediaRecorder, setMediaRecorder] = useState(null);
const [audioBlob, setAudioBlob] = useState(null);
const [recordingTime, setRecordingTime] = useState(0);
const timerRef = useRef(null);
@Anakiev2
Anakiev2 / How to install nvidia-legacy-340xx-driver (or nvidia-legacy-390xx-driver) on Debian 12 Bookworm.md
Last active December 13, 2025 05:06
How to install nvidia-legacy-340xx-driver on Debian 12 Bookworm

OUTDATED

Although this guide still works and even works on Debian 13 it's deprecated.

It's replaced by this new guide which supports both 64-bit and 32-bit libraries.

I will keep it because the information here is useful.

OUTDATED

 
 

How to install nvidia-legacy-340xx-driver on Debian 12 Bookworm

This guide will show you how to download, compile and install the nvidia-legacy-340xx-driver on Debian 12. Some people install the driver directly from sid but this will mix packages from both stable and unstable which may create issues. It's recommended to update and upgrade your system before you start.

@alexweberk
alexweberk / mlx_finetuning_gemma.ipynb
Last active October 27, 2025 21:47
MLX Fine-tuning Google Gemma
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
//
// VolumePopupView.swift
//
// Created by Alex Rosenberg on 1/24/24.
//
import SwiftUI
import AVFoundation
import MediaPlayer
@kamilogorek
kamilogorek / _screenshot.md
Last active November 6, 2025 06:15
Clutter-free VS Code Setup
image
local wezterm = require 'wezterm'
local themes = {}
for k, _ in pairs(wezterm.get_builtin_color_schemes()) do
table.insert(themes, k)
end
local fav_themes = {
"SweetTerminal (Gogh)",
"PaulMillr",