Skip to content

Instantly share code, notes, and snippets.

View mvandermeulen's full-sized avatar

Mark mvandermeulen

  • Fivenynes
  • Sydney, Australia
  • 11:53 (UTC +10:00)
View GitHub Profile
@gwpl
gwpl / claude-continue-directory-migration.md
Created June 2, 2025 19:38
Claude Code `--continue` after Directory `mv` move - Migration Guide and Internal Mechanics explanation

Claude Code Continue Functionality: Directory Migration Guide ( Claude Code --continue after Directory mv move - Migration Guide and Internal Mechanics explanation )

This guide explains how to preserve Claude Code's --continue functionality when moving project directories, along with the underlying mechanics.

Note: Claude Code currently lacks built-in directory migration features. Each directory maintains independent conversation sessions, and history doesn't automatically transfer when projects are moved.

Quick Fix: Steps to Maintain Continue History

When you move a project directory and want to preserve your conversation history:

@teaishealthy
teaishealthy / rpc.py
Created June 2, 2025 17:10
teaRPC - portable Redis* RPC
import asyncio
import json
import traceback
import uuid
from typing import (
Any,
Awaitable,
Callable,
Coroutine,
Literal,
@MangaD
MangaD / socket_api.md
Last active April 14, 2026 21:18
Comprehensive Guide to the Socket API

Comprehensive Guide to the Socket API

CC0

Disclaimer: Grok generated document.

The Socket API is a foundational technology for network and inter-process communication, enabling processes to exchange data across networks or within a single system. Initially developed as part of Berkeley Software Distribution (BSD) UNIX in the early 1980s, the Socket API, often called the Berkeley sockets API, has become a standard interface for networked applications across platforms like Linux, Windows, and macOS. This article provides a thorough exploration of the Socket API, covering its architecture, address families, socket types, protocols, implementation details, practical examples, and advanced concepts.

1. Introduction to the Socket API

@beeksiwaais
beeksiwaais / fulltextindexer.swift
Last active March 19, 2026 16:23
A script that start a webserver with the specified directory as its root. The script will also index the content of some text files and pdf in a index.webstart file
// MARK: - main.swift
import Foundation
import PDFKit // Import PDFKit for native PDF processing
import Network // Import Network framework for web server capabilities
import AppKit // Import AppKit for GUI elements (NSWindow, NSTextView, NSButton)
import UniformTypeIdentifiers // For UTType and MIME type mapping
// Define a custom error type for better error handling
enum IndexerError: Error, CustomStringConvertible {
@yazanzaid00
yazanzaid00 / ShortKit.md
Last active March 16, 2026 08:03
Run macOS Shortcuts Links Silently in the Background

ShortKit: Headless Shortcuts Launcher for macOS

Tired of shortcuts:// links opening the Shortcuts GUI app every time? ShortKit is a lightweight AppleScript application that registers its own custom shortkit:// URL scheme, allowing you to silently trigger Shortcuts in the background—no GUI.


Installation

1. Create the AppleScript

@0xdevalias
0xdevalias / template-effective-communication-analysis-and-coaching-framework.md
Last active October 2, 2025 20:47
A structured methodology, prompt, and template designed to identify and reduce miscommunication while supporting participants in developing more effective and emotionally intelligent communication skills.

[Template] Effective Communication Analysis & Coaching Framework

This document compiles a series of structured communication coaching analyses, focused on a real-world conversation reviewed in multiple segments. The analysis is guided by a single consistent prompt and performed in discrete parts to reduce bias and preserve objectivity.

Table of Contents

@lyohe
lyohe / new-uuid-v7.swift
Created May 18, 2025 14:53
UUID v7 を生成するための Raycast script command
#!/usr/bin/swift
// Required parameters:
// @raycast.schemaVersion 1
// @raycast.title New UUID v7
// @raycast.mode compact
//
// Optional parameters:
// @raycast.icon 🆔
// @raycast.packageName UUID Utilities
// @raycast.description Generate a draft-spec UUID version 7 and copy it to the clipboard.
@Nimmidev
Nimmidev / copy_mode_with_line_numbers.sh
Last active March 27, 2026 14:45
tmux copy mode with line numbers
#!/bin/sh
declare -r LINE_NUMBER_PANE_WIDTH=3
declare -r LINE_NUMBER_UPDATE_DELAY=0.1
declare -r COLOR_NUMBERS_RGB="101;112;161"
declare -r COLOR_ACTIVE_NUMBER_RGB="255;158;100"
open_line_number_split(){
local self_path=$(realpath $0)
local pane_id=$(tmux display-message -pF "#{pane_id}")
@0x48piraj
0x48piraj / README.md
Created May 4, 2025 03:37
Clearing UserDefaults during debug builds from Xcode

Use a UUID marker on each build (works even if build number doesn't change)

If you want UserDefaults to clear every time you install a new Debug build via Xcode, regardless of version or build number, you can inject a unique marker that changes on every build.

🔧 1. In your Build Settings (not Info.plist), add a custom build variable:

Go to:

Build SettingsUser-Defined → click +

@jessedc
jessedc / Chrome Tab Automations.md
Last active October 2, 2025 21:11
Apple Script to close duplicate google chrome tabs. Build with Codename Goose.

Two scripts that can automate some Chrome tasks for you:

  1. Close duplicate tabs
  2. Save all your tabs to an Apple Notes Note

Run with osascript ~/close_chrome_duplicates.scpt or osascript ~/save_chrome_tabs_to_notes.scpt

Setup some alisases