Skip to content

Instantly share code, notes, and snippets.

# # SPDX-License-Identifier: WTFPL
sensor:
- platform: pulse_meter
pin:
number: 2
inverted: True
unit_of_measurement: 'm³/h'
id: power_meter
device_class: "gas"

As a work colleague asked me about how I setup my "multi-live-system-thumbdrive": As a base I installed https://grml.org/ but I am sure another system using grub2 would also work. This installed grub on my USB thumbdrive with a rather simple main grub.cfg:

## grub2 configuration
source /boot/grub/header.cfg

insmod regexp

for config in /boot/grub/*_default.cfg ; do source "$config" ; done
for config in /boot/grub/*_options.cfg ; do source "$config" ; done
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE profile>
<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
<networking>
<keep_install_network config:type="boolean">true</keep_install_network>
</networking>
<software>
<packages config:type="list">
<package>openssh</package>
<package>sudo</package>
# succeeds as expected, shows hash
sudo -u _openqa-worker perl -wE '
my $dirname = "/var/lib/openqa/share/tests/opensuse";
my $checksafe = q{git config --global --get safe.directory | grep -q};
my $addsafe = q{HOME=$(mktemp -d --tmpdir os-autoinst-git.XXXXX) && git config --global --add safe.directory};
my $version = qx{($checksafe "$dirname" && git -C "$dirname" rev-parse HEAD || $addsafe "$dirname" && git -C "$dirname" rev-parse HEAD && echo rm -r \$HOME)};
$version ||= "(unreadable git hash)";
chomp($version);
say "HASH: $version"'
[2022-07-04T17:59:24.039037+02:00] [debug] no match: 29.9s, best candidate: chromium-highlighted-urlbar-20200219 (0.00)
[2022-07-04T17:59:25.029675+02:00] [debug] >>> testapi::_handle_found_needle: found chromium-highlighted-urlbar-20200219, similarity 1.00 @ 207/72
[2022-07-04T17:59:25.030018+02:00] [debug] tests/x11/chromium.pm:33 called chromium::type_address -> tests/x11/chromium.pm:20 called testapi::enter_cmd
[2022-07-04T17:59:25.030319+02:00] [debug] <<< testapi::type_string(string="chrome://version\n", max_interval=250, wait_screen_changes=1, wait_still_screen=0, timeout=30, similarity_level=47)
[2022-07-04T17:59:25.030514+02:00] [debug] tests/x11/chromium.pm:33 called chromium::type_address -> tests/x11/chromium.pm:20 called testapi::enter_cmd
[2022-07-04T17:59:25.030652+02:00] [debug] <<< testapi::wait_screen_change(timeout=10, similarity_level=50)
[2022-07-04T17:59:25.032396+02:00] [debug] <<< consoles::video_base::type_string(max_interval=250, json_cmd_token="rvBsdwgL", cmd="backend_type_string",
Mods
----
@niCeTeameu CBA Settings small, http://steamcommunity.com/sharedfiles/filedetails/?id=2158843028
A3 Thermal Improvement, http://steamcommunity.com/sharedfiles/filedetails/?id=2041057379
ace, http://steamcommunity.com/sharedfiles/filedetails/?id=463939057
ACE Compat - RHS Armed Forces of the Russian Federation, http://steamcommunity.com/sharedfiles/filedetails/?id=773131200
ACE Compat - RHS United States Armed Forces, http://steamcommunity.com/sharedfiles/filedetails/?id=773125288
ACE Compat - RHS: GREF, http://steamcommunity.com/sharedfiles/filedetails/?id=884966711
ACEX, http://steamcommunity.com/sharedfiles/filedetails/?id=708250744
Advanced Urban Rappelling, http://steamcommunity.com/sharedfiles/filedetails/?id=730310357
<?xml version="1.0" encoding="utf-8"?>
<html>
<!--Created by Arma 3 Launcher: https://arma3.com-->
<head>
<meta name="arma:Type" content="list" />
<meta name="generator" content="Arma 3 Launcher - https://arma3.com" />
<title>Arma 3</title>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet" type="text/css" />
<style>
body {
@okurz
okurz / autoyast-ssh+salt-minion.xml
Created November 25, 2020 21:44
openQA autoyast installation recipe providing ssh+salt-minion to apply all the rest later
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE profile>
<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
<networking>
<keep_install_network config:type="boolean">true</keep_install_network>
</networking>
<software>
<products config:type="list">
<product>openSUSE</product>
</products>
#!/usr/bin/env perl
use strictures;
use Mojo::JSON qw(decode_json);
use Mojo::File qw(path);
use Data::Dumper;
print(Dumper(decode_json(path('test_suites.json')->slurp)));
AnonIPLimit = 10
AuthOnlyViaModule = false
ConfigWriteDelay = 0
ConnectDelay = 5
HideVersion = false
MaxBufferSize = 500
ProtectWebSessions = true
SSLCertFile = /home/that_is_me/.znc/znc.pem
SSLDHParamFile = /home/that_is_me/.znc/znc.pem
SSLKeyFile = /home/that_is_me/.znc/znc.pem