Skip to content

Instantly share code, notes, and snippets.

View m1stadev's full-sized avatar
💻
starting projects & never finishing them

adam m1stadev

💻
starting projects & never finishing them
View GitHub Profile
@mplewis
mplewis / PTDIntelHex.h
Last active July 17, 2024 01:38
PTD's Intel Hex helper. This converts Intel Hex into NSData suitable for programming to a Bean. License: The MIT License
#import <Foundation/Foundation.h>
@interface PTDIntelHex : NSObject
@property (nonatomic, strong) NSString* name;
+ (PTDIntelHex*)intelHexFromHexString:(NSString*)hexString;
+ (PTDIntelHex*)intelHexFromFileURL:(NSURL*)file;
- (id)initWithHexString:(NSString*)hexString;
@integeruser
integeruser / extract-symbol-info-in-macho.py
Last active April 23, 2024 09:36
Extract symbols information (e.g. addresses) from Mach-O files
#!/usr/bin/env python3
import ctypes
LC_SYMTAB = 0x2
class mach_header_64(ctypes.Structure):
_fields_ = (
("magic", ctypes.c_uint32),
("cputype", ctypes.c_uint32),
@dhinakg
dhinakg / _details.md
Created December 26, 2023 03:32
python-asn1 extended

Some syntactic sugar for asn1

I'll push this onto a fork eventually but for now it's just a self-contained file. To use it just import the stuff as needed

License is MIT