Skip to content

Instantly share code, notes, and snippets.

View jreidinger's full-sized avatar

Josef Reidinger jreidinger

View GitHub Profile
require "yast"
require "benchmark"
# if container
Yast::WFM.SCRSetDefault(Yast::WFM.SCROpen("chroot=/mnt:scr", false))
# endif
puts Benchmark.realtime { 1000.times { Yast::SCR.Execute(Yast::Path.new(".target.bash_output"), "systemctl is-enabled systemd-hostnamed.service") }}
@jreidinger
jreidinger / Measuring.md
Last active April 4, 2023 08:27
How to Test Agame DBus Service Memory Consumption

How to Test Agame DBus Service Memory Consumption

Requirements

Get running Live image of Agama. If some additional software is needed to install like valgrind, TW repo needs to be added by zypper. Also it is good to stop agama before doing adjustments.

Pmap

To get pmap of backend service search for service pid e.g. using ps aux | grep agama and then pass pid to pmap call. It is good to measure overall memory consumption of given component or doing serie of it to see how it differs in time.

@jreidinger
jreidinger / cli.md
Last active March 22, 2026 12:17
CLI

Overview

Use Cases and Requirements

The Agama CLI serves two primary use cases, each with distinct functional requirements.

Scripting

Using the CLI within user scripts to create powerful automated workflows where an Agama profile is insufficient or requires specific integration into the user's environment.

Requirements:

Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>. Component Stack:
div unknown:0
Flex Flex.js:8
span unknown:0
a unknown:0
ButtonBase Button.js:44
Button unknown:0
LinkWithHooks Link.tsx:29
Link Link.tsx:50
p unknown:0