Skip to content

Instantly share code, notes, and snippets.

View canghai118's full-sized avatar
🎯
Focusing

Jeff canghai118

🎯
Focusing
View GitHub Profile
@canghai118
canghai118 / iterm_smart_paste.sh
Created March 12, 2026 14:03
Paste Image to Remove Claude Code
#!/bin/bash
# iterm_smart_paste.sh — iTerm2 零配置剪贴板文件/图片粘贴
#
# 功能:
# 1. Finder 中复制的文件 → 保留原始文件名上传到远程
# 2. 截图/图片数据 → 以 clip_<时间戳>.png 上传
# 3. 自动检测当前 iTerm2 会话的 SSH 连接和远程主机
# 4. 超过 20MB 的文件自动跳过并提示
#
# iTerm2 快捷键设置:
@canghai118
canghai118 / .editorconfig
Created April 4, 2018 06:54
editorconfig
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
[*.json]
indent_style = space