Goal for this part: learn enough to call a method.
How to read this:
☡ A Knuth-style Dangerous Bend sign ☡ precedes parts that should be skipped at first.
str. heslo | |
39 Analogie | |
59 Bolzano | |
205 Budoucí matematik | |
214 Co je neznámá? | |
87 Definice pojmu | |
77 Dekompozice a rekombinace | |
94 Descartes | |
96 Diagnóza | |
74 Důsledek |
#!/bin/sh | |
# put this to .git/hooks/pre-commit and make it executable | |
echo PRE-COMMIT HOOK: | |
set -x | |
# the repo Rust root is in a subdir | |
# TODO: skip all of this if there are no changes in that dir | |
cd rust | |
# as seen in .github/workflows/ci-rust.yml | |
cargo fmt --all -- --check |
#!/usr/bin/env ruby | |
# The Rust httpmock crate, | |
# https://docs.rs/httpmock/latest/httpmock/ | |
# in the 0.7.0 version, when it logs the request, it shows the body as | |
# a numeric array of bytes. | |
# Make it readable. | |
# Input: | |
# [2024-08-23T08:22:33Z DEBUG httpmock::server::web::handlers] Could not match any mock to the following request: HttpMockRequest { |
#!/bin/sh | |
exec >> /var/log/YaST2/signal 2>&1 | |
# pstree -pluna; but let's use the long options for clarity | |
pstree --show-pids --long --uid-changes --numeric-sort --arguments | |
sleep 10 |
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
require "dbus" | |
# Complex property | |
class Test < DBus::Object | |
dbus_interface "net.vidner.Scratch" do | |
dbus_attr_reader :progress, "(stttt)" | |
end |
<?xml version="1.0"?> | |
<productDefines xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> | |
<!-- | |
Work around for the text domain | |
textdomain="control" | |
--> | |
<textdomain>control</textdomain> |
#!/bin/sh | |
# Automate the password setting step from | |
# https://en.opensuse.org/Portal:MicroOS/Ignition | |
# | |
# 1. Ask for a password interactively. | |
# 2. Make an ignition.iso for setting root's password to that. | |
# An existing ignition.iso will be overwritten. | |
# | |
# Required commands | |
# openssl |
Valgrind is an instrumentation framework that runs a program by simulating every instruction. It has several tools. Memcheck is the original one, used for detecting memory errors. Massif is a memory profiler.
(The output it produces, example: https://gist.github.com/mvidner/4e8ed01c7dabb648a50e0dd5f0fdcc62 )
The basic invocation of Massif is simple, valgrind --tool=massif my_program its_arguments
, so for YaST
-------------------------------------------------------------------------------- | |
Command: /usr/lib/YaST2/bin/y2start installation --arg initial qt | |
Massif arguments: --massif-out-file=/var/log/YaST2/massif-%p.out | |
ms_print arguments: massif-4596.out | |
-------------------------------------------------------------------------------- | |
MB | |
373.0^ ### | |
| # |