Skip to content

Instantly share code, notes, and snippets.

View daccle's full-sized avatar

Daniel daccle

View GitHub Profile
@daccle
daccle / get_darc_dok_semiautomatic.py
Last active May 28, 2021 12:28
Use the qrz.com XML-Api to retrieve data about the DARC DOK on semi-automatic way...
import requests
import xmltodict
API_URL='https://xmldata.qrz.com/xml/current/'
USER='dc2zp'
PASS='<PASSWORD>'
AGENT='Random Py Script'
SESSION=' '
def get_session_key():
@daccle
daccle / update-ddns-he.py
Last active February 17, 2021 13:43
Very basic script to update dns.he.net DDNS with current IP, if the entry is outdated. I run this every 10 minutes. Works for me.
#!/usr/bin/env python3
'''
update-ddns-he.py
Updates dns entry on Hurricane Electric dDNS, if the current dns entry doesn't
equal the current ip address on https://ifconfig.co/
Expects a config file named config.yaml in the same directory with the
following content:
### Keybase proof
I hereby claim:
* I am daccle on github.
* I am danielclerc (https://keybase.io/danielclerc) on keybase.
* I have a public key ASC8km306b3peECnah0d0TLgstw1WtahqAyWLOc8SQhG-Qo
To claim this, I am signing this object: