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/sh | |
| if ! command -v wget &> /dev/null | |
| then | |
| echo "wget could not be found" | |
| exit | |
| fi | |
| read -p 'Username: ' USERNAME | |
| read -sp 'Password: ' PASSWORD |
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 python3 | |
| # update_ip.py - A script for updating dynamic DNS using Opalstack's API | |
| # by Chad von Nau | |
| # | |
| # * Python 2 and 3 compatible. | |
| # * Supports IPv4 and IPv6 addresses. | |
| # * Records the last IP in a JSON file and only calls the API if the IP has changed. | |
| # | |
| # Instructions: |