Skip to content

Instantly share code, notes, and snippets.

View cylian914's full-sized avatar

Charbonnier Cylian cylian914

View GitHub Profile
@cylian914
cylian914 / a.c
Created March 23, 2024 10:42
dif signed and unsigned reading
#include <stdio.h>
int main(){
unsigned char a = 0xFF;
printf("%x, %i, %i\n", a,a, (char)a);
return 0;
}
// result ff, 255, -1
@cylian914
cylian914 / crash.py
Last active January 2, 2024 21:09
Py code to manage crash
class creport:
def __init__(self, string):
if isinstance(string,list):
self.modlist = string;
else: # assume its a string
self.modlist = string.split('\n');
for i in range(len(self.modlist)):
self.modlist[i] = self.modlist[i].split('|')[0:-1]
for j in range(len(self.modlist[i])):
self.modlist[i][j] = self.modlist[i][j].strip();