Skip to content

Instantly share code, notes, and snippets.

View mightyohm's full-sized avatar

Jeff Keyzer mightyohm

View GitHub Profile
@cvn
cvn / download-my-webfaction.sh
Created December 10, 2020 07:34
A shell script to download a copy of your my.webfaction.com, requires wget
#!/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
@cvn
cvn / update_ip.py
Last active November 11, 2022 16:25
A script for updating dynamic DNS using Opalstack's API
#!/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: