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 | |
| ################################################################################ | |
| # | |
| # generate_sit_files.sh | |
| # | |
| # Shell script to generate phone network SIT files in au format | |
| # suitable for hosting on a Cisco ISR | |
| # | |
| # Make sure ffmpeg is installed first | |
| # |
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
| # µPing (MicroPing) for MicroPython | |
| # copyright (c) 2018 Shawwwn <shawwwn1@gmail.com> | |
| # License: MIT | |
| # Internet Checksum Algorithm | |
| # Author: Olav Morken | |
| # https://github.com/olavmrk/python-ping/blob/master/ping.py | |
| # @data: bytes | |
| def checksum(data): | |
| if len(data) & 0x1: # Odd number of bytes |