Skip to content

Instantly share code, notes, and snippets.

@storopoli
storopoli / init.lua
Last active April 16, 2026 19:12
Very Very Very Minimal init.lua
vim.pack.add{
'https://github.com/ibhagwan/fzf-lua',
'https://github.com/neovim/nvim-lspconfig',
}
-- LSP
vim.o.autocomplete = true
vim.o.completeopt = 'menu,menuone,noselect,nearest'
vim.diagnostic.config({ virtual_text = false, virtual_lines = { current_line = true } })
vim.api.nvim_create_autocmd("LspAttach", {
@igorbabko
igorbabko / _zed_setup.md
Last active March 16, 2026 22:33
Zed Config

🎨 Beautiful Minimal Zed Setup

thumb_wallpaper_blurred

🍿 Watch on YouTube

@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

Installing cl.exe with the Minimum Required Components

This article explains how to install the Microsoft C/C++ compiler (cl.exe) with a minimal setup, without installing the full Visual Studio IDE. This is useful when you only need the build tools, for example on a CI server or in a lightweight development environment.


1. Download Visual Studio Build Tools

First, download the Visual Studio Build Tools installer from the following link:

@rpavlik
rpavlik / settings.json
Last active March 30, 2026 23:33
Go away copilot and other slop machines (in vscode)
{
// go away copilot and other ai slop machines
"accessibility.verboseChatProgressUpdates": false,
"accessibility.verbosity.inlineChat": false,
"accessibility.verbosity.panelChat": false,
"accessibility.verbosity.terminalChatOutput": false,
"ansible.lightspeed.suggestions.waitWindow": 360000,
"chat.agent.codeBlockProgress": false,
"chat.agent.enabled": false,
"chat.agent.maxRequests": 0,
#!/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:

@FelikZ
FelikZ / Caps_lock_is_ESC.reg
Created December 2, 2024 09:19 — forked from JeanOlivier/Caps_lock_is_ESC.reg
Windows 10/11 registry modification to replace Caps Lock by Escape
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,01,00,3a,00,00,00,00,00
; Data = 00000000 00000000 0200000000 01003A00 00000000
; 0x00000000 Header: Version. Set to all zeroes.
; 0x00000000 Header: Flags. Set to all zeroes.
; 0x00000002 Two entries in the map (including null entry).
@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);
@RefusesNames
RefusesNames / Initialize-VS.ps1
Created May 28, 2024 20:26
This function updates paths and sets environment variables the same way a Visual Studio developer console does
function Initialize-VS {
$vsPath = & (Join-Path ${env:ProgramFiles(x86)} "\Microsoft Visual Studio\Installer\vswhere.exe") -property installationpath
if ($vsPath -is [array]) {
$last = $vsPath | Select -Last 1
Import-Module (Join-Path $last "Common7\Tools\Microsoft.VisualStudio.DevShell.dll")
Enter-VsDevShell -VsInstallPath $last -SkipAutomaticLocation -DevCmdArguments '-arch=amd64 -no_logo'
} else{
Import-Module (Join-Path $vsPath "Common7\Tools\Microsoft.VisualStudio.DevShell.dll")
Enter-VsDevShell -VsInstallPath $vsPath -SkipAutomaticLocation -DevCmdArguments '-arch=amd64 -no_logo'