Skip to content

Instantly share code, notes, and snippets.

@maddada
maddada / setting-default-editor-for-claude-code.md
Last active January 7, 2026 01:09
Setting Default Editor for Claude Code

To set the default editor in Mac, Linux, Windows:

1. 🖥️ macOS (Default: Zsh)

On a modern macOS system, the default shell is Zsh.

  • File: ~/.zshrc (This file is in your home directory. The ~ is a shortcut for /Users/yourusername).
  • How to Edit:
    1. Open your terminal.
  1. Type nano ~/.zshrc to open the file in a terminal editor.
@jblang
jblang / 00-notes.md
Last active January 7, 2026 01:06
Heathkit H89 Survival Guide

H89 Survival Guide

This is a work-in-progress collection of notes I've been making as I'm exploring the Heathkit H89.

@object-Object
object-Object / pain_and_suffering.md
Created February 24, 2024 23:49
How to rename your user and home folder on Windows 11

I finally got tired of my laptop deadnaming me, and decided to fix it. Here's what worked for me.

  1. Back up all drives.
  2. Back up the registry.
  3. Create a system restore point.
  4. Take a picture of your taskbar, start menu, Quick Access pinned items, and VSCode taskbar right click pinned items (if you use VSCode), since you might have to clear these.
  5. Restart your computer, and log into a different admin acount.
    • I used the hidden Administrator account, which can be activated with this command: net user administrator /active:yes
  6. Use netplwiz to rename the user: https://superuser.com/a/1011089
  7. Follow these steps to rename the home folder and update the registry: https://winhelponline.com/blog/rename-user-profile-folder-windows
@mferak
mferak / SegmentedPicker.swift
Created March 29, 2025 19:45
SegmentedPicker in style of Apple's newer apps such as Photos
import SwiftUI
struct SegmentedPicker: View {
@State var selectedValue: PickerExampleValue
@Namespace var pickerAnimation
@Environment(\.accessibilityReduceMotion) private var reduceMotion
var body: some View {
HStack {
ForEach(PickerExampleValue.allCases) { value in
{
"trains": [
{
"name": "VLNK THIVIM EXP",
"number": "00102"
},
{
"name": "PNVL MADGAON SPL",
"number": "00103"
},
@pbarone
pbarone / unraid-nfs-configuration.md
Created September 2, 2025 15:21
UNRAID NFS Configuration Guide

UNRAID NFS Configuration Guide - Complete Issue Resolution

Executive Summary

This document details the investigation, root cause analysis, and resolution of recurring NFS stale file handle issues in a home lab environment with UNRAID NAS and multiple Linux clients. The solution involved migrating from static NFS mounts to systemd automount configuration, eliminating stale handle problems while maintaining full container compatibility.

Environment Overview

Infrastructure

  • UNRAID Server: unraid-server (192.168.1.100) - Primary NAS with NFS exports
@diffficult
diffficult / mpv.conf
Created November 1, 2016 04:41
basic MPV config with high settings and ytdl settings
# Video settings
vo=opengl-hq
tscale=linear
scale=ewa_lanczossharp
cscale=ewa_lanczossoft
dscale=mitchell
scale-antiring=0.7
cscale-antiring=0.7
dither-depth=auto
@ashleykleynhans
ashleykleynhans / README.md
Last active January 7, 2026 00:53 — forked from dlage/README.md
Namecheap DNS to zone file
@apsdehal
apsdehal / Railway Stations
Created April 29, 2014 07:37
JSON file containing all stations and their codes.
{"data":[{"name":"ABU ROAD", "code":"ABR"},
{"name":"ACHHNERA", "code":"AH"},
{"name":"ADONI", "code":"AD"},
{"name":"ADRA", "code":"ADRA"},
{"name":"AGRA FORT", "code":"AF"},
{"name":"AGRA CANTT.", "code":"AGC"},
{"name":"AHMADNAGAR", "code":"ANG"},
{"name":"AHMEDABAD", "code":"ADI"},
{"name":"AJMER", "code":"AII"},
{"name":"AKOLA", "code":"AK"},
@minimaxir
minimaxir / CLAUDE.md
Created January 2, 2026 01:57
Rust CLAUDE.md (20260101)

Agent Guidelines for Rust Code Quality

This document provides guidelines for maintaining high-quality Rust code. These rules MUST be followed by all AI coding agents and contributors.

Your Core Principles

All code you write MUST be fully optimized.

"Fully optimized" includes: