diff --git a/.gitignore b/.gitignore index 959f2c2..99852fc 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,9 @@ dist/ .output/ public/ +# Temp Scripts +scripts/ + # dependencies node_modules/ diff --git a/scripts/.gitignore b/scripts/.gitignore deleted file mode 100644 index ca5e3f2..0000000 --- a/scripts/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -venv/ -.idea/ \ No newline at end of file diff --git a/scripts/cloudflare-updater.py b/scripts/cloudflare-updater.py deleted file mode 100644 index 6047188..0000000 --- a/scripts/cloudflare-updater.py +++ /dev/null @@ -1,52 +0,0 @@ -import sys, logging, ipaddress, json -import CloudFlare - - -def main(TOKEN, NEW_IP): - logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.DEBUG) - cf = CloudFlare.CloudFlare(token=TOKEN) - zones = cf.zones.get() - zone_identifier = [] - for zone in zones: - if zone['name'] == "firq.dev": - zone_identifier = zone - - if not zone_identifier: - raise Exception("No Zone identifier extracted") - - logging.info(f" Zone Identifier is {zone_identifier['id']}") - - records = cf.zones.dns_records.get(zone_identifier['id']) - update_records = [] - - if not records: - raise Exception(f"Could not extract records from {zone_identifier['name']}") - - for record in records: - if record['type'] == 'AAAA': - update_records.append({"id": record['id'], "type": record['type'], "name": record['name'], "content": record['content']}) - - logging.info(f" Got the following DNS records registered to {zone_identifier['name']}") - logging.info(json.dumps(update_records, sort_keys=True, indent=2)) - records_done = 0 - - for record in update_records: - data = { - "name": record['name'], - "type": record['type'], - "content": NEW_IP - } - try: - cf.zones.dns_records.patch(zone_identifier['id'], record['id'], data=data) - records_done += 1 - except Exception as e: - logging.error(e) - - logging.info(f"Finished updating {records_done} records for {zone_identifier['name']}") - - -if __name__ == '__main__': - assert len(sys.argv) == 3 - assert isinstance(ipaddress.ip_address(sys.argv[2]), ipaddress.IPv6Address), \ - f'IP {sys.argv[2]} is not a valid IPv4 address' - main(sys.argv[1], sys.argv[2]) diff --git a/scripts/requirements.txt b/scripts/requirements.txt deleted file mode 100644 index c4afa28..0000000 --- a/scripts/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -cloudflare>=2.11.1 diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 7492921..e86290a 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -35,7 +35,7 @@ if (currentpage !== 'home') { - + {title} diff --git a/src/layouts/customFooter.astro b/src/layouts/customFooter.astro index 260186d..273aa37 100644 --- a/src/layouts/customFooter.astro +++ b/src/layouts/customFooter.astro @@ -51,7 +51,7 @@ >his site here
- +

diff --git a/static/archbtw.png b/static/archbtw.png deleted file mode 100644 index bcda975..0000000 Binary files a/static/archbtw.png and /dev/null differ diff --git a/static/link_192.png b/static/link_192.png deleted file mode 100644 index b132979..0000000 Binary files a/static/link_192.png and /dev/null differ diff --git a/static/social/twitch.webp b/static/social/twitch.webp index eff7d23..76e503c 100644 Binary files a/static/social/twitch.webp and b/static/social/twitch.webp differ diff --git a/static/social/twitter.webp b/static/social/twitter.webp index e3be4d7..79c3808 100644 Binary files a/static/social/twitter.webp and b/static/social/twitter.webp differ