Skip to content

Instantly share code, notes, and snippets.

@oldnapalm
oldnapalm / zwift_camera_shake_patcher.py
Created January 9, 2024 17:57
Zwift camera shake patcher
import os
name = 'ZwiftApp.exe'
find = b'\x48\x8b\xc4\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x81\xec\xd8\x00\x00\x00'
repl = b'\x0f\x57\xc0\xc3\x35\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x81\xec\xd8\x00\x00\x00'
if os.path.isfile(name):
with open(name, 'rb') as f:
orig = f.read()
patched = orig.replace(find, repl)
@oldnapalm
oldnapalm / update_zwift.py
Last active January 27, 2024 08:31
Update Zwift
import os
import sys
import platform
import time
import math
import signal
import threading
import xml.etree.ElementTree as ET
from urllib3 import PoolManager
from binascii import crc32
@oldnapalm
oldnapalm / fit2json.py
Last active May 9, 2023 22:50
Create a GTBikeV course from a FIT file
import os
import sys
import argparse
import fitdecode
import json
import math
import folium
parser = argparse.ArgumentParser()
parser.add_argument('--input', '-i', type=str, required=True)
@oldnapalm
oldnapalm / LoadCayoPerico.cs
Created July 1, 2021 17:20
GTA 5 SHVDN script to load Cayo Perico island
using System;
using GTA;
using GTA.Math;
using GTA.Native;
namespace LoadCayoPerico
{
public class LoadCayoPerico : Script
{
private Blip island;
@oldnapalm
oldnapalm / 1000-1.0.0.json
Created February 7, 2021 19:30
Mount Chiliad climb
{
"Name": "Mount Chiliad climb",
"StartPoint": {
"X": -842.4644,
"Y": 5442.768,
"Z": 34.16289
},
"Props": [
{
"Name": "prop_tri_start_banner",