Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/healer-pro-pack / healer_modules/heal_ports.sh |
| Date | Not specified in source |
| Repository | Janady13/healer-pro-pack |
| Revision | 8cd241e17bd004fdbdc1ee5e9913e45304671553 |
| Branch | main |
| Path or archive member | healer_modules/heal_ports.sh |
| Original SHA-256 | 95623bc63ccddff43ae81d30148042d364c9a12a21eaab32bb44f519fd9b704d |
| Git blob SHA | b534998fcd79fe7b58eafd6c92f8cc3102cedfe1 |
| Reading-copy SHA-256 | 95623bc63ccddff43ae81d30148042d364c9a12a21eaab32bb44f519fd9b704d |
Every recorded occurrence
These 2 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| Janady13/healer-pro-pack / healer_modules/heal_ports.sh | main | 8cd241e17bd004fdbdc1ee5e9913e45304671553 | Open original |
| Janady13/healer-pro-pack / healer_modules/heal_ports.sh | healer-core | f3c05ff2106f4617f2a81d62a43fe810b86cf9c8 | Open original |
Recovered source transcript
Download complete source text ↓11 lines · 0.3 KB
#!/bin/bash
set -euo pipefail
echo "🚑 Healing ports..."
lsof -nP -iTCP -sTCP:LISTEN | awk 'NR>1{print $2}' | sort -u | while read -r PID; do
CMD="$(ps -o comm= -p "$PID" 2>/dev/null || true)"
case "$CMD" in
*python*|*uvicorn*|*node*) echo "🔪 Killing $CMD (PID $PID)"; kill -9 "$PID" || true ;;
esac
done
echo "✅ Ports healed."