Skip to content

Instantly share code, notes, and snippets.

View awdavies's full-sized avatar

Andrew Davies awdavies

View GitHub Profile
@awdavies
awdavies / dns-update.py
Created December 16, 2022 09:13
DDNS Update Script
#!/usr/bin/python3
import requests
import subprocess
import json
WAN_IP_LOOKUP_CMD = ['dig', '+short', 'myip.opendns.com', '@resolver1.opendns.com']
TOKEN = 'your_token_here'
HEADERS = {
'X-Auth-Email': 'a.w.davies.vio@gmail.com',
'Authorization': f'Bearer {TOKEN}',
@awdavies
awdavies / main.cpp
Last active November 29, 2022 08:52
Skyrim 3rd Person Walk Fix Redux (using CommonLibSSE)
#include <polyhook2/Detour/x64Detour.hpp>
#include <polyhook2/Enums.hpp>
#include <polyhook2/Virtuals/VFuncSwapHook.hpp>
#include <polyhook2/ZydisDisassembler.hpp>
namespace
{
void InitializeLog()
{
#ifndef NDEBUG