This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| // RevenueCat v2 analytics fetcher. | |
| // Usage: RC_API_KEY=sk_v2_... RC_PROJECT_ID=proj_... node rc-analytics.mjs [lifetime|28d|90d] | |
| // Defaults to 28d. Prints the overview snapshot plus a set of period-aware charts. | |
| const PERIODS = { | |
| lifetime: { days: null, label: "Lifetime" }, | |
| "28d": { days: 28, label: "Last 28 days" }, | |
| "90d": { days: 90, label: "Last 90 days" }, | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| export PATH="/opt/homebrew/bin:/usr/local/bin:$PATH" | |
| panes=$(tmux list-panes | wc -l | tr -d ' ') | |
| if [ "$panes" -eq 1 ]; then | |
| tmux split-window -h -l 33% -c "#{pane_current_path}" | |
| else | |
| target=$(tmux list-panes -F '#{pane_id} #{pane_left} #{pane_top}' \ | |
| | sort -k2,2nr -k3,3nr | head -1 | awk '{print $1}') |