Skip to content

Instantly share code, notes, and snippets.

View YukiMatsumura's full-sized avatar

Yuki312 YukiMatsumura

View GitHub Profile
@YukiMatsumura
YukiMatsumura / display_monitor.sh
Created March 19, 2026 02:08
ディスプレイ接続が瞬断されて暗転する場合のログ取得(MacOS向け)
#!/bin/bash
# ディスプレイ暗転検出用ログモニター
# 次に暗転が起きたら、このスクリプトの出力を共有してください
LOG_FILE="/tmp/display_dropout_$(date +%Y%m%d_%H%M%S).log"
echo "=== Display Dropout Monitor ===" | tee "$LOG_FILE"
echo "Started at: $(date)" | tee -a "$LOG_FILE"
echo "Monitoring... (Ctrl+C to stop)" | tee -a "$LOG_FILE"
echo "Log file: $LOG_FILE" | tee -a "$LOG_FILE"
echo "---" | tee -a "$LOG_FILE"
@YukiMatsumura
YukiMatsumura / settings.json
Last active March 14, 2026 13:45
Claude: Plan.md preview in cmux
"hooks": {
"PreToolUse": [
{
"matcher": "ExitPlanMode",
"hooks": [
{
"type": "command",
"command": "cmux markdown open \"$(ls -t ~/.claude/plans/*.md | head -1)\"",
"timeout": 5,
"statusMessage": "Preview plan.md in cmux"
#!/usr/bin/env bash
# =============================================================================
# difit-auto-detect.sh
# Automatically detects git state and opens appropriate diff view
# with difit in a cmux browser split pane.
#
# Dependencies:
# - cmux https://cmux.app/
# - difit https://github.com/yoshiko-pg/difit
#