Skip to content

Instantly share code, notes, and snippets.

;; This buffer is for text that is not saved, and for Lisp evaluation.
;; To create a file, visit it with ‘<f20>’ and enter text in its buffer.
func (w *Webhook) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
// credit from https://github.com/argoproj/argo-cd/blob/97003caebcaafe1683e71934eb483a88026a4c33/util/webhook/webhook.go#L327-L350
var payload any
var err error
ctx := r.Context()
// copy the body of the request because we need to parse it twice if secrets are defined

notes on 190977

[debug] [pid:563972] [DBIC] Took 0.00025800 seconds: SELECT me.id, me.result_dir, me.archived, me.state, me.priority, me.result, me.reason, me.clone_id, me.blocked_by_id, me.TEST, me.DISTRI, me.VERSION, me.FLAVOR, me.ARCH, me.BUILD, me.MACHINE, me.group_id, me.assigned_worker_id,

import logging
import argparse
import pathlib
import os
import shutil
import time
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
❯ OPENQA_FULLSTACK_TEMP_DIR=/home/iob/Desktop FULLSTACK=1 prove -l t/full-stack.t
t/full-stack.t .. 31/? # stopped waiting for '(?^u:Result: passed)', result turned out to be 'incomplete,'
# full result panel contents:
# 3
# Result: incomplete, finished less than a minute ago (ran for 00:14 minutes)
# Reason: died: terminated prematurely, see log output for details
# Clone of 5 (restarted already 1 time)
# Scheduled product: job has not been created by posting an ISO (but possibly the original job)
# Assigned worker: chameleon.suse.cz:1
# Actions:
@d3flex
d3flex / Asset.sh
Created January 30, 2025 07:49 — forked from JoeyBurzynski/Asset.sh
Bash Scripting: Check if a Bash Variable Has Been Set (Or Is Empty String)
# How to determine if a bash variable is empty?
# A variable in bash (and any POSIX-compatible shell) can be in one of three states:
#
# unset
# set to the empty string
# set to a non-empty string
# Most of the time you only need to know if a variable is set to a non-empty string, but occasionally it's important to distinguish between unset and set # to the empty string.
#
screen -S openqa -X quit
#!/bin/bash
SESSION_NAME="openqa"
LOG_DIR="/var/log/odev/logs"
## created manual
## mkdir -p $LOG_DIR
echo "Starting openQA services in a new screen session: $SESSION_NAME"
echo "Logs will be stored in $LOG_DIR"
#!/bin/bash
SESSION_NAME="openqa"
LOG_DIR="/var/log/odev/logs"
## created manual
## mkdir -p $LOG_DIR
echo "Starting openQA services in a new screen session: $SESSION_NAME"
echo "Logs will be stored in $LOG_DIR"
Sep 22 01:03:00 qesapworker-prg5 auditd[2506]: Audit daemon rotating log files
Sep 22 01:15:21 qesapworker-prg5 systemd[1]: Starting Backup /etc/sysconfig directory...
Sep 22 01:15:21 qesapworker-prg5 systemd[1]: backup-sysconfig.service: Deactivated successfully.
Sep 22 01:15:21 qesapworker-prg5 systemd[1]: Finished Backup /etc/sysconfig directory.
Sep 22 01:24:34 qesapworker-prg5 dbus-daemon[2511]: [system] Activating via systemd: service name='org.opensuse.Snapper' unit='snapperd.service' requested by ':1.1433' (uid=0 pid=51510 comm="/usr/bin/python3 /usr/bin/salt-minion ")
Sep 22 01:24:34 qesapworker-prg5 systemd[1]: Starting DBus interface for snapper...
Sep 22 01:24:34 qesapworker-prg5 dbus-daemon[2511]: [system] Successfully activated service 'org.opensuse.Snapper'
Sep 22 01:24:34 qesapworker-prg5 systemd[1]: Started DBus interface for snapper.
Sep 22 01:24:53 qesapworker-prg5 systemd[1]: var-lib-openqa-share.automount: Got hangup/error on autofs pipe from kernel. Likely our automount point has been un