Skip to content

Instantly share code, notes, and snippets.

@NickNothom
NickNothom / gist:d1ae6dd28dd00c7940d675f9a16359a7
Created November 6, 2019 00:33
Ping360 Stops Responding
[16:16:39:519] ping.protocol.pingsensor[Debug]: Handling Message: 2300
[16:16:39:519] ping.protocol.ping360[Debug]: Handling Message: 2300
[16:16:39:644] ping.protocol.pingsensor[Debug]: Handling Message: 2300
[16:16:39:644] ping.protocol.ping360[Debug]: Handling Message: 2300
[16:16:39:670] ping.protocol.pingsensor[Debug]: Handling Message: 2300
[16:16:39:670] ping.protocol.ping360[Debug]: Handling Message: 2300
[16:16:39:707] ping.protocol.pingsensor[Debug]: Handling Message: 2300
[16:16:39:707] ping.protocol.ping360[Debug]: Handling Message: 2300
[16:16:39:810] ping.protocol.pingsensor[Debug]: Handling Message: 2300
[16:16:39:810] ping.protocol.ping360[Debug]: Handling Message: 2300
@NickNothom
NickNothom / s500_enumerator.py
Created September 30, 2020 05:42
S500 Enumerator
#!/usr/bin/env python -u
"""Scan serial ports for ping devices
Symlinks to detected devices are created under /dev/serial/ping/
This script needs root permission to create the symlinks
"""
from __future__ import print_function
import subprocess
from brping import PingDevice
from brping.definitions import *
@NickNothom
NickNothom / network_failover.sh
Last active November 5, 2022 19:03
Network Failover
#!/bin/bash
# Set defaults if not provided by environment
CHECK_DELAY=${CHECK_DELAY:-5}
CHECK_IP=${CHECK_IP:-8.8.8.8}
PRIMARY_IF=${PRIMARY_IF:-eth0}
PRIMARY_GW=${PRIMARY_GW:-10.0.0.1}
BACKUP_IF=${BACKUP_IF:-eth0}
BACKUP_GW=${BACKUP_GW:-10.0.0.6}