Skip to content

Instantly share code, notes, and snippets.

View alufers's full-sized avatar
🥚
eggtastic

Albert Koczy alufers

🥚
eggtastic
View GitHub Profile
@alufers
alufers / vortex.py
Last active August 18, 2023 00:58
Vortex game backup
from ctx import Context
from st3m.reactor import Responder
from st3m.input import InputController, InputState
from st3m.utils import tau
from st3m.ui.view import View, ViewManager
from st3m.application import Application, ApplicationContext
import st3m.run
import math
@alufers
alufers / calibration.html
Last active August 3, 2023 19:33
Pose detection 2
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
font-family: sans-serif;
}
button {
@alufers
alufers / curl_easyopts.txt
Created July 24, 2023 08:07
Curl easyopt values
ABSTRACT_UNIX_SOCKET: 0x2818
ACCEPTTIMEOUT_MS: 0xd4
ACCEPT_ENCODING: 0x2776
ADDRESS_SCOPE: 0xab
ALTSVC: 0x282f
ALTSVC_CTRL: 0x11e
APPEND: 0x32
AUTOREFERER: 0x3a
AWS_SIGV4: 0x2841
BUFFERSIZE: 0x62
@alufers
alufers / run_chrome.sh
Created July 8, 2023 14:19
Run chrome with mitmproxy certificate
#!/bin/bash
MITMPROXY_SPKI=$(
cat ~/.mitmproxy/mitmproxy-ca-cert.pem |
openssl x509 -inform pem -noout -outform pem -pubkey |
openssl pkey -pubin -inform pem -outform der |
openssl dgst -sha256 -binary |
openssl enc -base64
)
@alufers
alufers / README.md
Last active October 16, 2023 10:50
PX5 MTCE headunit reverse engneering notes

Notes

  • Main CPU: rk3368
  • HW model and dts source: Rockchip PX5 EVB V11
  • MCU: STM32F091vct6 (256 Kbytes of Flash memory and 32 Kbytes of SRAM) datsheet image
@alufers
alufers / gpio-getter.py
Created June 7, 2023 16:31
GDB script for printing gpio configuration of a STM32F412 (requires SVDParser and a svd for the mcu)
# First connect to the mcu via blackmagic probe or whatever
# usage (in gdb): source gpio-getter.py
from cmsis_svd.parser import SVDParser
import gdb
def read_memory(address, length):
inferior = gdb.selected_inferior()
return inferior.read_memory(address, length)
@alufers
alufers / userscript.script.js
Last active May 17, 2023 10:16
Pepper/mydealz/allegro disk price per GB userscript
// ==UserScript==
// @name Pepper parser
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Parse product listings on pepper.pl
// @author ChatGPT
// @match https://www.pepper.pl/*
// @match https://www.mydealz.de/*\
// @match https://allegro.pl/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=pepper.pl
@alufers
alufers / hdmi_dongle_usb1.1_descriptor.hex
Created April 10, 2023 18:17
USB Configuration descriptor of a MS2109-based dongle in USB 1.1 mode (captured via tinyusb on a Pi Pico)
09 02 63 01 05 01 00 80 FA 08 0B 00 02 0E 03 00
02 09 04 00 00 00 0E 01 00 02 0D 24 01 00 01 33
00 00 6C DC 02 01 01 12 24 02 01 01 02 00 00 00
00 00 00 00 00 03 00 00 00 0B 24 05 02 01 00 00
02 0F 00 00 09 24 03 03 01 01 00 02 00 09 04 01
00 00 0E 02 00 00 0E 24 01 01 49 00 83 00 03 00
00 00 01 00 0B 24 06 01 01 01 01 00 00 00 00 2A
24 07 01 00 80 02 E0 01 00 B8 0B 00 00 00 B8 0B
00 60 09 00 2A 0A 8B 02 00 05 0A 8B 02 00 15 16
05 00 80 1A 06 00 20 A1 07 00 40 42 0F 00 04 09
@alufers
alufers / Button.h
Created March 5, 2023 10:05
Horseplate
class Button
{
public:
int pin;
int debounceDelay;
int lastButtonState = HIGH;
unsigned long lastDebounceTime;
bool isPressed = false;
@alufers
alufers / bootlog.log
Created December 29, 2022 11:59
LSC Smart Indoor Camera - serial bootlog
ROM: Use nor flash.
ROM: Init DDR..Training done.
ROM: Ok
U-Boot 2010.06 (Sep 08 2021 - 09:21:26)
DRAM: 64 MiB
master [ctl : mem] = [0 : 0]
SF: Got idcode 20 40 17 20 40