Skip to content

Instantly share code, notes, and snippets.

@inigoflores
Last active January 12, 2022 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inigoflores/90b067c4612f5699ba7f3f88a0032f01 to your computer and use it in GitHub Desktop.
Save inigoflores/90b067c4612f5699ba7f3f88a0032f01 to your computer and use it in GitHub Desktop.
Pisces Witnessed Beacons
#!/bin/bash
grep -hE 'miner_onion_server:decrypt:{[0-9]+,[0-9]+} sending witness at RSSI' /home/pi/hnt/miner/log/console.log* |\
awk '{print $1,$2,$10,$14}' | \
sort -n | awk '{printf "%s %s | RSSI: %s SNR: %s Noise: %s\n", $1, $2, $3, $4, ($3-$4)}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment