# One-liners

**Read when:** you want a quick command reference. These are pasted directly from typical workflows.

```bash
# Refresh a browser source after editing HTML
#   In OBS: right-click the source → Refresh cache    (no restart needed)

# Regenerate vendor/obs-config.js after WS password change
bash scripts/setup.sh

# Refresh telemetry (interactive — review every field)
bash scripts/telemetry.sh --collect

# Rebuild the playlist index after dropping new files into ~/HDD/Music
bash scripts/playlist.sh

# Deploy this rig from scratch (run on Midgolem)
git clone <repo> ~/.config/obs-studio && cd ~/.config/obs-studio && bash scripts/deploy-rig.sh

# Bridge / bot status + tail
systemctl --user status obs-mpd-bridge obs-twitch-bot
journalctl --user -u obs-twitch-bot -f

# Verify both audio sinks exist
pactl list short sinks | grep -E 'mpd_stream|discord_stream'

# Check OBS WS port is listening
ss -tlnp | grep 4455

# Is OBS running? (flatpak-aware — DO NOT use `pgrep -fa 'flatpak run …'`)
flatpak ps --columns=application | grep -qx com.obsproject.Studio && echo running

# Inspect a scene collection
python3 -m json.tool basic/scenes/Default_Stream_HUD.json | less

# List scenes in the active collection
python3 -c "import json; d=json.load(open('basic/scenes/Default_Stream_HUD.json')); print([s['name'] for s in d['scene_order']])"
```
