Skip to content

Instantly share code, notes, and snippets.

View bukowa's full-sized avatar

Mateusz Kurowski bukowa

View GitHub Profile
@bukowa
bukowa / CMakeLists.txt
Created February 4, 2025 12:43
find panelw and ncursesw in msys2 while compiling multitail
find_library(NCURSES_LIB NAMES ncursesw PATHS /mingw64/lib REQUIRED)
find_library(PANEL_LIB NAMES panelw PATHS /mingw64/lib REQUIRED)
@bukowa
bukowa / report.txt
Last active February 3, 2025 22:46
dei 1st turn rome profile
###############################################################################################################
##### ProFi, a lua profiler. This profile was generated on: 02/03/25 23:45:27
##### ProFi is created by Luke Perkin 2012 under the MIT Licence, www.locofilm.co.uk
##### Version 1.3. Get the most recent version at this gist: https://gist.github.com/2838755
###############################################################################################################
| TOTAL TIME = 75.074005
| FILE : FUNCTION : LINE : TIME : RELATIVE : CALLED |
| [C] : remove_effect_bundle_from_characters_force : -1 : 17.858 : 23.79% : 24019 |
| [string "c:\gam
@bukowa
bukowa / preferences.script.txt
Created February 3, 2025 00:12
rome2 flags
ui_porthole_default_page
ui_porthole_mode
ui_radar_mode
ui_radar_scale
ui_scale
ui_show_campaign_labels
ui_show_help_markers
ui_show_input_method
ui_telestration_always_on
ui_touch_enabled
@bukowa
bukowa / tried.lua
Created January 29, 2025 21:41
tried
-- Helper function to get the faction list from the game model
function getFactionList()
return scripting.game_interface:model():world():faction_list()
end
-- Helper function to get the region list from a faction
function getRegionList(faction)
return faction:region_list()
end
@bukowa
bukowa / gist:03ec1cc70be43161a43b56eac9c0a01a
Created January 25, 2025 16:26
rome 2 ROTR start all events Insubres
[2025-01-25 17:24:58] [DEBUG] =============================================================
[2025-01-25 17:24:58] [DEBUG] NewSession
[2025-01-25 17:24:58] [DEBUG] context:
[2025-01-25 17:24:58] [DEBUG] =============================================================
[2025-01-25 17:24:58] [DEBUG] =============================================================
[2025-01-25 17:24:58] [DEBUG] LoadingGame
[2025-01-25 17:24:58] [DEBUG] context:
[2025-01-25 17:24:58] [DEBUG] =============================================================
[2025-01-25 17:24:58] [DEBUG] =============================================================
[2025-01-25 17:24:58] [DEBUG] CampaignEffectsBundleAwarded
@bukowa
bukowa / Corefile
Last active October 26, 2024 19:28
coredns
.:53 {
forward . tls://1.1.1.1 tls://1.0.0.1 {
tls_servername cloudflare-dns.com
health_check 5s
}
cache {
success 3600
}
}
@bukowa
bukowa / code.xaml
Created October 13, 2024 23:02
code
<Grid.Resources>
<Style TargetType="TextBox">
<Setter Property="Padding" Value="2 1"></Setter>
<Setter Property="BorderBrush" Value="Black"></Setter>
<Setter Property="BorderThickness" Value="1"></Setter>
<Setter Property="Validation.ErrorTemplate">
<Setter.Value>
<ControlTemplate>
<AdornedElementPlaceholder></AdornedElementPlaceholder>
</ControlTemplate>
<!DOCTYPE html>
<html class="default" lang="en">
<head>
<meta charset="utf-8"/>
<meta http-equiv="x-ua-compatible" content="IE=edge"/>
<title>3. Selenium API | @tauri-e2e/selenium</title>
<meta name="description" content="Documentation for @tauri-e2e/selenium"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" href="../assets/style.css"/>
<link rel="stylesheet" href="../assets/highlight.css"/>
@bukowa
bukowa / main.rs
Created June 30, 2024 23:34
win32job
use std::{env, io};
use std::io::ErrorKind;
use std::process::{Command, Stdio};
fn main() -> Result<(), std::io::Error> {
// Collect the command and its arguments from the command line input
let args: Vec<String> = env::args().collect();
// Find the position of "--" which separates the wrapper's arguments from the subcommand's arguments
let separator_pos = args.iter().position(|arg| arg == "--").unwrap_or(1);