Skip to content

Instantly share code, notes, and snippets.

View psolyca's full-sized avatar

Damien Gaignon psolyca

View GitHub Profile
@psolyca
psolyca / honor_band_4_re.md
Last active April 23, 2024 19:37
Honor Band 4 RE

Introduction

Lots of works have been made to communicate with the Honor Band 3/4 in order to be used with GadgetBridge.
RE is followed in issue 1021 BTW, communication where not complete and the RE was done on BLE LPv2.
A new protocol LPv3 appeared.

Goal

RE the LPv3 BLE protocol and integrate Honor devices in GadgetBridge.

Keys

#!/usr/bin/env python3
import os
"""
Cursed Code.
This code literally patches your kernel memory, proceed at your own risk.
Tested on Ubuntu 17.10 and Arch, x86_64. Should work on other distros, maybe even other architectures!
@Uradamus
Uradamus / NWN Linux Install Notes.md
Last active September 18, 2024 22:01
Some notes on getting the native version of NWN installed on Linux.

This uses the version available through GOG.com. Thanks go to TheCycoONE from the Arch Linux and GOG communities who's AUR package and forums posts were instrumental in my discovering how to finally install the GOG version of Neverwinter Nights on Linux.

First step is to ensure you have the necessary dependencies and utilities installed:

  • elfutils
  • glu
  • ia-32-libs (only if you are on a 64bit distro)
  • innoextract
  • libgl
  • libstdc++5
@awafer
awafer / bmp.py
Created August 3, 2012 04:05 — forked from voidw0rd/bmp.py
Python bitmap
import struct, random, sys
from PIL import Image
class Bitmap(object):
def __gen_radom_pixel__(self):
return 111
return random.randint(0, 255)