Skip to content

Built by a PhD whose memory was failing, whose diet was a mess, and whose anxiety had its own agenda. Most second brain tools ignore the fact that your brain doesn't work in isolation: your body and your mental health are part of the system too. This crew handles all three: knowledge, nutrition, and mental wellness.

Shell
547 B
Raw Blame
#!/usr/bin/env bash
# List Hey Feed (newsletters, notifications)
# Usage: hey-feed [--json]
set -euo pipefail
if [[ "${1:-}" == "--json" ]]; then
    hey box feedbox --json
else
    hey box feedbox --json | python3 -c "
import json, sys
data = json.load(sys.stdin)
for p in data.get('data', {}).get('postings', []):
    date = p.get('active_at', '')[:10]
    sender = p.get('creator', {}).get('name', '')[:30]
    subj = p.get('name', '')[:65]
    tid = p.get('app_url', '').split('/')[-1]
    print(f'{date} | {sender:30} | {subj} | {tid}')
"
fi