Skip to content

Instantly share code, notes, and snippets.

View bukowa's full-sized avatar

Mateusz Kurowski bukowa

View GitHub Profile
@bukowa
bukowa / ESPINAWIFI.ino
Last active September 12, 2025 09:54
INA226 Arduino Uno LCD Shield 2.4 TFT
#include <ESP8266WiFi.h>
#include <Wire.h>
#include <INA226_WE.h> // Upewnij się, że ta biblioteka jest zainstalowana
// --- Konfiguracja Sieci i Serwera ---
const char *ssid = "ESP_POMIAROWY";
WiFiServer server(80);
// --- Konfiguracja INA226 ---
#define I2C_ADDRESS 0x40
@bukowa
bukowa / newscript.lua
Created September 5, 2025 13:10
script2
-- Clear the console output for a clean view
consul.console.clear()
-- Shortcut function to write messages into the Consul console
function wr(x)
consul.console.write(x)
end
-- Get the first army from the first alliance
local army1 = bm:alliances():item(1):armies():item(1)
@bukowa
bukowa / newscript.lua
Created September 5, 2025 13:10
script1
-- clear the console output for a nice view
consul.console.clear()
-- shortcut for writing into consul console
function wr(x)
consul.console.write(x)
end
wr("how many alliances in battle?")
wr(bm:alliances():count())
@bukowa
bukowa / heatmap.py
Created July 22, 2025 01:50
marlin heatmap visualizer
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np
import argparse
import os
def parse_marlin_output(text_output):
"""
Parses Marlin's G29 T output robustly.
It identifies only the actual data rows and ignores headers or other text.
@bukowa
bukowa / .xinitrc
Last active June 27, 2025 06:04
archlinux dell wyse dx0d xorg 5010 1024x768 fujitsu 7500 lcd
#!/bin/sh
xrandr --output VGA-2 --mode 1024x768 --pos 0x0;
xterm &
tint2 &
exec openbox-session
@bukowa
bukowa / conditions.txt
Last active March 28, 2025 14:04
rome 2 dump conditions events docs
### FUNCTION START ###
void UndefinedFunction_1000a950(void)
{
@bukowa
bukowa / dump.lua
Last active March 27, 2025 15:21
rome 2 battle script dump
-- local t2 = debug.getregistry()[2]
-- consul.log:info(consul.pretty(debug.getfenv(t2)))
{
["BOOL_Stop_All_Attacking_Closest"] = false,
["Battle_Manager_Battle_Results"] = "function: 569B8978",
["CONST_WATCH_INTERVAL"] = 2000,
["Esc_Key_Pressed"] = "function: 569B88D0",
["PATROL_MANAGER_COULDNT_FIND_TARGET"] = 12,
["PATROL_MANAGER_DEFAULT_GUARD_RADIUS"] = 0,
["PATROL_MANAGER_DEFAULT_INTERCEPT_TIME"] = 10000,
@bukowa
bukowa / dump_ui.lua
Last active March 19, 2025 22:43
rome 2 dump ui
function log_ui_tree(component, depth)
depth = depth or 0
local indent = string.rep("\t", depth)
-- Log component name with indentation
consul.log:_write_to_file(indent .. tostring(component:Id()))
-- Get child count
local count = component:ChildCount()
@bukowa
bukowa / aghidradump.txt
Last active March 13, 2025 13:48
rome 2 cliexecute dump
===============
Sets up cindy live playback
cindy_playback <cindy_xml_path> <clear_animated_scenes on completion true/false> <expire_camera_on_completion true/false>
cindy live
cindy_playback
===============
record frame times to a file
frame_rate_log <log filename>
battle
frame_rate_log
@bukowa
bukowa / decompil.py
Last active March 12, 2025 12:54
ghidra decompiler scripy string
import re
from time import sleep
import ghidra
import ghidra.util.UndefinedFunction.findFunction
def collect_and_print_matches():
pattern = r'L"([^"]+)"' # Regex to capture wide string literals
refs = getReferencesTo(toAddr(0x112A7EB0))
decomp = ghidra.app.decompiler.DecompInterface()