Skip to content

Instantly share code, notes, and snippets.

View ldrahnik's full-sized avatar

Lukáš Drahník ldrahnik

View GitHub Profile
@ldrahnik
ldrahnik / fd
Created February 11, 2026 21:46
fd
'self.__next_f.push([1,"4:[\\"$\\",\\"html\\",null,{\\"lang\\":\\"en\\",\\"data-theme\\":\\"light\\",\\"style\\":{\\"colorScheme\\":\\"light\\"},\\"suppressHydrationWarning\\":true,\\"className\\":\\"__variable_796408\\",\\"children\\":[\\"$\\",\\"$L2c\\",null,{\\"children\\":[\\"$\\",\\"$L2d\\",null,{\\"locales\\":{\\"Achievements\\":{\\"fb\\":\\"made the first kill\\",\\"f10\\":\\"made 10 kills first\\",\\"tower\\":\\"destroyed the enemy tower first\\",\\"roshan\\":\\"first to kill Roshan\\",\\"team\\":\\"Team\\",\\"team-radiant\\":\\"team radiant\\",\\"team-dire\\":\\"team dire\\",\\"global-text\\":\\"\\u003cb\\u003eNo one has unlocked this achievement yet\\u003c/b\\u003e. \\u003cbr\\u003e\\u003c/br\\u003eThis information may appear a little later\\"},\\"AdDetector\\":{\\"title\\":\\"Ad blocker detected!\\",\\"description\\":\\"Support us and whitelist the site with an ad-blocking plugin. Integrations help us to constantly develop the project\\"},\\"AdminBar\\":{\\"edit\\":\\"Edit object\\",\\"services\\":
@ldrahnik
ldrahnik / raw
Last active February 11, 2026 21:34
raw
<!DOCTYPE html><html lang="en" data-theme="light" style="color-scheme:light" class="__variable_796408"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover, user-scalable=no"/><link rel="preload" as="image" href="https://media.cyberscore.live/static/teams/2025/6/2f6f9d4c-758e-47dd-831a-ddf562de1735.webp"/><link rel="preload" as="image" href="https://media.cyberscore.live/static/teams/2025/6/f5f409de-e00e-4681-8c17-c9eafaf800a9.webp"/><link rel="preload" as="image" href="https://media.cyberscore.live/static/teams/2025/6/ed3f5b5b-ebe7-41cc-9afb-fe6878f75187.webp"/><link rel="preload" as="image" href="https://media.cyberscore.live/static/teams/2025/6/35a936d3-c9b2-43be-bd34-74ea2bbfef68.webp"/><link rel="preload" as="image" href="https://media.cyberscore.live/static/heroes/2025/6/62fb5c26-53ed-40a2-87e4-0b71991858d2.webp"/><link rel="preload" as="image" href="https://media.cyberscore.live/static/heroes/2025/6/be0f1755-495d-45ca-988f
@ldrahnik
ldrahnik / notes.txt
Last active January 17, 2026 13:11
Different device addresses used for controlling of touchpad feature (DialPad / NumberPad) via i2c (0x15 and 0x38) in DSDT tables
Part of dsdt table of laptop with device address 0x15 (ASUS Zenbook UM3402YA):
```
Scope (_SB.I2CA)
{
Device (TPDD)
{
Name (_CID, "PNP0C50" /* HID Protocol Device (I2C bus) */) // _CID: Compatible ID
Name (_UID, 0x05) // _UID: Unique ID
Name (ETPH, Package (0x16)
@ldrahnik
ldrahnik / text.txt
Created July 8, 2025 08:37
e-hotel guidelines (CZE)
Dobrý den, pane Drahníku,
Níže Vám posíláme podrobný postup zaplacení Vaší dovolené v jakémkoliv hotelu v zahraničí (i v ČR) zaměstnaneckými benefity přes fakturu.
4 Kroky k dovolené v České republice i zahraničí za benefity:
1. Necháte si vystavit standardní Fakturu/daňový doklad nebo zálohovou fakturu nebo (nesmí být uhrazena), kdekoliv na světě (konkrétní hotel či cestovní kancelář)
2. Na této stránce: https://www.ehotel.cz/benefity/zaloha si vytvoříte záznam o Vašem pobytu a nahrajte scan faktury od hotelu (pdf). Fakturu prosíme nahrát minimálně 4 dny před její splatností a termínem pobytu
@ldrahnik
ldrahnik / code.py
Last active June 3, 2025 09:59
HDBSCAN
all_features = np.concatenate([train_features, val_features])
subset_size = 50000 # adjust based on your RAM
# --- Random selection from all features ---
subset_features, subset_indices = shuffle(all_features, np.arange(len(all_features)), random_state=42)
subset_features = subset_features[:subset_size]
subset_indices = subset_indices[:subset_size]
EPSILON_VALUES = [0.05, 0.01, 0.1]
@ldrahnik
ldrahnik / bar
Created August 21, 2024 15:51
foo
2024-08-21 17:49:20 Apache Commons Daemon procrun stdout initialized.
17:49:27,508 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
17:49:27,509 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/C:/app/camunda_deploy8%20-%20Copy/camunda-bpm-tomcat-7.15.0/server/apache-tomcat-9.0.43/webapps/userrights-processes/WEB-INF/classes/logback.xml]
17:49:27,549 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
17:49:27,551 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
17:49:27,560 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
17:49:27,566 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
17:49:27,605 |-INFO in ch.qos.logback.core.jora
@ldrahnik
ldrahnik / confighandler.log
Last active April 23, 2024 15:43
FortiClient logs 23.4.2024
This file has been truncated, but you can view the full file.
20240117 18:21:30.485 TZ=+0100 [confighandler:EROR] fctconfig_handler:157 Error occurred while polling. [4]
20240117 18:21:30.490 TZ=+0100 [confighandler:INFO] fctconfig_handler:213 Closing confighandler endpoint.
20240117 18:21:30.490 TZ=+0100 [confighandler:INFO] fctconfig_handler:215 Closing sqlite database.
20240117 18:21:30.490 TZ=+0100 [confighandler.log:INFO] main:62 confighandler daemon exiting.
20240118 09:49:02.673 TZ=+0100 [confighandler:EROR] cvt_util_epctrl:48 Failed to connect to EC message server [2]
20240119 20:44:20.469 TZ=+0100 [confighandler:EROR] fctconfig_handler:157 Error occurred while polling. [4]
20240119 20:44:20.477 TZ=+0100 [confighandler:INFO] fctconfig_handler:213 Closing confighandler endpoint.
20240119 20:44:20.477 TZ=+0100 [confighandler:INFO] fctconfig_handler:215 Closing sqlite database.
20240119 20:44:20.478 TZ=+0100 [confighandler.log:INFO] main:62 confighandler daemon exiting.
20240119 22:26:02.345 TZ=+0100 [confighandler:EROR] cvt_util_epctrl:48 Failed to connect to EC m
@ldrahnik
ldrahnik / confighandler.log
Last active March 15, 2024 21:58
FortiClient VPN logs on Ubuntu 22.04
20240117 18:21:30.485 TZ=+0100 [confighandler:EROR] fctconfig_handler:157 Error occurred while polling. [4]
20240117 18:21:30.490 TZ=+0100 [confighandler:INFO] fctconfig_handler:213 Closing confighandler endpoint.
20240117 18:21:30.490 TZ=+0100 [confighandler:INFO] fctconfig_handler:215 Closing sqlite database.
20240117 18:21:30.490 TZ=+0100 [confighandler.log:INFO] main:62 confighandler daemon exiting.
20240118 09:49:02.673 TZ=+0100 [confighandler:EROR] cvt_util_epctrl:48 Failed to connect to EC message server [2]
20240119 20:44:20.469 TZ=+0100 [confighandler:EROR] fctconfig_handler:157 Error occurred while polling. [4]
20240119 20:44:20.477 TZ=+0100 [confighandler:INFO] fctconfig_handler:213 Closing confighandler endpoint.
20240119 20:44:20.477 TZ=+0100 [confighandler:INFO] fctconfig_handler:215 Closing sqlite database.
20240119 20:44:20.478 TZ=+0100 [confighandler.log:INFO] main:62 confighandler daemon exiting.
20240119 22:26:02.345 TZ=+0100 [confighandler:EROR] cvt_util_epctrl:48 Failed to connect to EC m
@ldrahnik
ldrahnik / confighandler.log
Created March 15, 2024 18:01
FortiClient VPN logs on Ubuntu 22.04
20240117 18:21:30.485 TZ=+0100 [confighandler:EROR] fctconfig_handler:157 Error occurred while polling. [4]
20240117 18:21:30.490 TZ=+0100 [confighandler:INFO] fctconfig_handler:213 Closing confighandler endpoint.
20240117 18:21:30.490 TZ=+0100 [confighandler:INFO] fctconfig_handler:215 Closing sqlite database.
20240117 18:21:30.490 TZ=+0100 [confighandler.log:INFO] main:62 confighandler daemon exiting.
20240118 09:49:02.673 TZ=+0100 [confighandler:EROR] cvt_util_epctrl:48 Failed to connect to EC message server [2]
20240119 20:44:20.469 TZ=+0100 [confighandler:EROR] fctconfig_handler:157 Error occurred while polling. [4]
20240119 20:44:20.477 TZ=+0100 [confighandler:INFO] fctconfig_handler:213 Closing confighandler endpoint.
20240119 20:44:20.477 TZ=+0100 [confighandler:INFO] fctconfig_handler:215 Closing sqlite database.
20240119 20:44:20.478 TZ=+0100 [confighandler.log:INFO] main:62 confighandler daemon exiting.
20240119 22:26:02.345 TZ=+0100 [confighandler:EROR] cvt_util_epctrl:48 Failed to connect to EC m
@ldrahnik
ldrahnik / error.sh
Created July 27, 2023 08:36
Build Camunda v7.15 from source error
[INFO] Reactor Summary for Camunda Platform - Root Pom 7.15.0:
[INFO]
[INFO] Camunda Platform - License Book .................... SUCCESS [ 0.841 s]
[INFO] Camunda Platform - tomcat .......................... SUCCESS [ 0.007 s]
[INFO] Camunda Platform - tomcat Assembly ................. SUCCESS [ 3.151 s]
[INFO] Camunda Platform - webapp - Tomcat ................. SUCCESS [ 1.455 s]
[INFO] Camunda Platform - tomcat Distro ................... FAILURE [ 0.067 s]
[INFO] Camunda Platform - webapp - Tomcat Standalone ...... SKIPPED
[INFO] Camunda Platform - Root Pom ........................ SKIPPED
[INFO] ------------------------------------------------------------------------