Skip to content

Instantly share code, notes, and snippets.

View shuntaroy's full-sized avatar

Shuntaro Yada shuntaroy

View GitHub Profile
@Git-on-my-level
Git-on-my-level / remote-headless-mac-setup.md
Created January 28, 2026 10:38
Set up a new Mac to with SSH/Mosh, Tailscale, and minimal sane tmux setup

Mac-to-Mac Remote Shell Stack (Tailscale + SSH + Mosh + tmux) — Low-Lag, High-Reliability Setup

This gist documents a reproducible setup for a “remote shell that feels local” between a laptop and one or more headless Macs (e.g., Mac minis). It is optimized for:

  • High latency / packet loss links (SSH typing lag, key repeats, “rubber band” echo)
  • Roaming networks (Wi-Fi drops, IP changes)
  • Long-lived sessions (detach/reattach, crash tolerance)

Core design decisions:

  • Tailscale provides a private, encrypted, stable network plane (no port forwarding/NAT complexity).
  • OpenSSH (Remote Login) is used for authentication, key management, and compatibility.
@doraTeX
doraTeX / ocr.sh
Last active January 16, 2026 14:57
A shell script to perform OCR on images/PDFs using macOS built-in OCR engine -- https://doratex.hatenablog.jp/entry/20230629/1687977178
#!/bin/bash
SCRIPTNAME=$(basename "$0")
function realpath () {
f=$@;
if [ -d "$f" ]; then
base="";
dir="$f";
else
base="/$(basename "$f")";