Skip to content

Instantly share code, notes, and snippets.

View cocus's full-sized avatar
🧉

Santiago Hormazabal cocus

🧉
View GitHub Profile
#!/bin/bash
KDIR=staging
DEBIAN=$(pwd)/debian
MNT=mnt
REL=bookworm
MIRROR="http://deb.debian.org/debian"
echo "= 1. debootstrap"
sudo debootstrap --foreign --arch i386 ${REL} ${DEBIAN}/ ${MIRROR}
; Note, add this to the i51.cfg on your ida installation dir.
; The aim is to add support for the Intel 80C51FA CPU, which is a
; 80C51 variant.
; This is the revision 1 of this gist
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@cocus
cocus / i51.cfg
Created April 13, 2023 18:31
IDA 80C552 CPU definition
; Note, add this to the i51.cfg on your ida installation dir.
; The aim is to add support for the Phillips P80C552 CPU, which is a
; 80C51 variant.
; This is the revision 1 of this gist
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@cocus
cocus / gist:479a282f44aefa9cd0dddaa4919e62fc
Created September 30, 2018 23:29
Re-enable Synaptics property page in Mouse Control Applet
1) Register the SynTPCpl.dll file, which should be located either in C:\Windows\System32 or in Program Files\Synaptics\SynTP
a) Open a cmd.exe with admin priveleges.
b) Run the appropiate command:
i) regsvr32 C:\Windows\System32\SynTPCpl.dll
ii) regsvr32 "C:\Program Files\Synaptics\SynTP\SynTPCpl.dll"
2) Set the PropertySheetHandler for the Synaptics applet
a) Open regedit
b) Search for "SynTPCpl.dll", but keep looking until the result is a key like HKEY_CLASSES_ROOT\CLSID\{2F603045-309F-11CF-9774-0020AFD0CFF6}\InProcServer32.
c) Copy that GUID {2F603045-309F-11CF-9774-0020AFD0CFF6}.