Skip to content

Instantly share code, notes, and snippets.

View cocus's full-sized avatar
🧉

Santiago Hormazabal cocus

🧉
View GitHub Profile
@cocus
cocus / i51-msm80c31f.cfg
Last active March 31, 2025 01:27
IDA MSM80C31F CPU definition
; Note, add this to the i51.cfg on your ida installation dir.
; The aim is to add support for the OKI MSM80C31F CPU, which is a
; 80C51 variant.
; This is the revision 1 of this gist
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@cocus
cocus / gist:c79b2a3d0fe2b1c4c67736f43dc70bf9
Created August 4, 2024 03:53
Update thingino config in-place
#!/bin/bash
LOGO_WIDTH=191
LOGO_HEIGHT=167
IP="192.168.100.50"
USER="root"
PASS="root"
UIP="$USER@$IP"
SSHTHING="sshpass -p $USER ssh $UIP"
#!/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}.