Skip to content

Instantly share code, notes, and snippets.

View alxbl's full-sized avatar
:octocat:
Does not push to Github often enough

Alexandre Beaulieu alxbl

:octocat:
Does not push to Github often enough
View GitHub Profile
@alxbl
alxbl / fft.py
Last active December 4, 2024 18:49
Zwift to Tacx App For Windows activity type converted and Garmin Connect auto-uploader.
#!/bin/env python3
#
# Converts a Zwift activity (.fit) using fitfiletools.com to a "Tacx App for Windows" activity
# so that Garmin Connect accrues distance and activity count for badge tallies.
# Because apparently Garmin doesn't like Zwift ;)
# Author: alxbl
#
# Assumptions:
# - You are logged in to Garmin Connect using firefox (for automatic upload)
# - You recently visited connect.garmin.com to make sure your authentication token is valid
@alxbl
alxbl / type08.py
Last active October 22, 2020 07:52
Encoder for TES Arena's MIF file format (type08) records
# This script provides a rudimentary data encoding algorithm for
# type08 records in MIF files.
#
# It's not exactly Huffman-coding or adaptative Huffman coding, but it
# behaves very similar. The developers call it "Delta Mode"
#
# @author alxbl ([email protected])
#
# https://en.wikipedia.org/wiki/File:Huffman_coding_visualisation.svg
from sys import exit
@alxbl
alxbl / wke-amp-lpe.py
Last active November 25, 2021 07:33
WKE - Local Privilege Escalation using System Mechanics's AMP.sys driver
import sys
import random
import binascii
import struct
import os
from ctypes import *
from ctypes.wintypes import *
# Shorthands for some ctypes stuff.

Keybase proof

I hereby claim:

  • I am alxbl on github.
  • I am alxbl (https://keybase.io/alxbl) on keybase.
  • I have a public key whose fingerprint is 6ADC C9F4 59AA 603E BB71 2011 6980 01FA 5C86 D4F1

To claim this, I am signing this object: