Skip to content

Instantly share code, notes, and snippets.

View bukowa's full-sized avatar

Mateusz Kurowski bukowa

View GitHub Profile
@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
Last active February 19, 2025 15:47
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);
@bukowa
bukowa / run.js
Last active July 1, 2024 20:07
tribal wars 2 dupe script resources duplication script bot
function run_dupe(_RESOLVE) {
// nie zmieniaj wioski jak skrypt dziala
// jak skonczy rekrutowac to odswiez przegladarke
// co chcesz rekrutowac
// jesli pusty policzymy najlepszy
let recruitUnit = "";
// co chcesz wyslac
const sendUnit = "spear";
+ node --test --test-force-exit --test-timeout=90000 tests-e2e-js/dist/main.js
TAP version 13
# [ [DEBUG] default - {
# PATH_TAURI_APP_BINARY: 'D:\\\\a\\\\tauri-e2e\\\\tauri-e2e/target/release/tauri-app.exe',
# PATH_WEBDRIVER_BINARY: 'D:\\\\a\\\\tauri-e2e\\\\tauri-e2e/.build/bin/msedgedriver.exe',
# SELENIUM_WEBDRIVER_HOST: '127.0.0.1',
# SELENIUM_WEBDRIVER_PORT: '5699',
# SELENIUM_WEBDRIVER_LOG_LEVEL: 'DEBUG',
# TESTS_LOG_LEVEL: 'debug',
# TESTS_TIMEOUT: 45000