Skip to content

Instantly share code, notes, and snippets.

View achilleas-k's full-sized avatar
🕹️

Achilleas Koutsou achilleas-k

🕹️
View GitHub Profile
@achilleas-k
achilleas-k / demo.md
Last active November 29, 2024 11:24
console-highlight
$ echo "if you set it to 'nothing', it's all white, which is fine I guess" > $outfile
$ cat $outfile
if you set it to 'nothing', it's all white, which is fine I guess
$ echo "if you set it to 'sh', you get script styling, and sometimes that'll look weird" > $outfile
$ cat $outfile
if you set it to 'sh', you get script styling, and sometimes that'll look weird
# vim style movement
bind generic,index,attach j next-entry
bind generic,index,attach k previous-entry
bind generic,index,pager \Cd half-down
bind generic,index,pager \Cu half-up
bind index J next-unread
bind index K previous-unread
bind pager j next-line
# MY VARS
set my_confdir = ~/.config/neomutt
set my_cachedir = ~/.cache/neomutt
set my_mailcache = ~/mail
# GLOBAL / GENERAL
set mailcap_path = $my_confdir/mailcap
alternative_order text/enriched text/plain text
auto_view text/html
#!/usr/bin/env bash
set -euo pipefail
distro="$1"
arch="$2"
image="$3"
config="$4"
output=$(mktemp -d)
{
"version": "2",
"pipelines": [
{
"runner": "org.osbuild.fedora38",
"name": "build",
"source-epoch": 1659397331,
"stages": [
{
"type": "org.osbuild.rpm",
15:34:04 DEBUG init earlyinit:init_log:287 Log initialized.
15:34:04 DEBUG init machinery:init:299 Qt wrapper info:
PyQt6: success
PyQt5: not imported
-> selected: PyQt6 (via autoselect)
15:34:04 DEBUG init earlyinit:init_qtlog:298 Qt log initialized.
15:34:04 DEBUG init app:run:70 Main process PID: 121412
15:34:04 DEBUG init app:run:72 Initializing directories...
15:34:04 DEBUG init standarddir:init:341 Base directory: /tmp/qutebrowser-basedir-pt6mp347
15:34:04 DEBUG init app:run:76 Initializing config...
PID: 30683 (qutebrowser)
UID: 1000 (achilleas)
GID: 1000 (achilleas)
Signal: 11 (SEGV)
Timestamp: Thu 2023-10-12 13:47:04 CEST (1h 42min ago)
Command Line: /usr/bin/python3 /usr/bin/qutebrowser
Executable: /usr/bin/python3.11
Control Group: /user.slice/user-1000.slice/[email protected]/app.slice/[email protected]
Unit: [email protected]
User Unit: [email protected]
@achilleas-k
achilleas-k / request.json
Created March 14, 2023 13:58
osbuild-pipeline request
{
"distro": "rhel-8",
"arch": "x86_64",
"image-type": "qcow2",
"blueprint": {
"name": "minej",
"description": "My test blueprint",
"version": "0.0.1",
"modules": [],
"groups": [],
Image: mnt/images/pxeboot/initrd.img: 84M
========================================================================
Version: dracut-055-30.git20220216.el9
Arguments: --no-hostonly --kver '5.14.0-75.el9.x86_64' --force -v --show-modules --no-early-microcode --reproducible --modules 'bash systemd fips systemd-initrd modsign nss-softokn i18n convertfs network-manager network ifcfg url-lib drm plymouth prefixdevname prefixdevname-tools crypt dm dmsquash-live kernel-modules kernel-modules-extra kernel-network-modules livenet lvm mdraid qemu qemu-net resume rootfs-block terminfo udev-rules dracut-systemd pollcdrom usrmount base fs-lib img-lib shutdown uefi-lib biosdevname coreos-installer fdo' --install '/.buildstamp'
dracut modules:
bash
systemd
fips
@achilleas-k
achilleas-k / git-pr
Last active November 21, 2022 12:20
#!/usr/bin/env bash
set -euo pipefail
checknargs() {
if (( $1 != $2 )); then
usage
exit 1
fi
}