Skip to content

Instantly share code, notes, and snippets.

View Steveveepee's full-sized avatar

Steve Pole Steveveepee

View GitHub Profile
from dateutil import parser, tz
from datetime import datetime, timezone
MAX_TIME_RANGE = 12 * 60 # how many minutes in the future to look at forecasts
BATTERY_CAPACITY = 82 # kWh - Tesla Model 3 Performance (2021)
CHARGE_RATE = 11 # kWh - Gen 3 Wall Connector (3 Phase 16A)
LOCAL_TZ = tz.gettz('Australia/Sydney')
def get_price_forecast():
@ritchiecarroll
ritchiecarroll / README.md
Last active February 11, 2025 23:11
Manual Windows Partitions Recovery and Restore from Windows Image Backup

Manual Windows Partitions Recovery and Restore from Windows Image Backup

Steps below iterate how to manually recreate the disk partitions required by Windows and restore a Windows installation from a system image backup created with the "Backup and Restore (Windows 7)" feature, especially when the official steps fail.

These steps were tested with Windows 11, but should work with prior versions of Windows as well: