Skip to content

Instantly share code, notes, and snippets.

View mrueg's full-sized avatar
🌥️
It's cloudy outside.

Manuel Rüger mrueg

🌥️
It's cloudy outside.
View GitHub Profile
@mrueg
mrueg / kernel-config-check.py
Last active May 20, 2024 02:59
Kernel config checker
#!/usr/bin/env python
# Checking installed packages using linux-info.eclass
# for necessary kernel options
import portage
vartree = portage.db[portage.root]['vartree']
all_cpvs = vartree.dbapi.cpv_all()
settings = portage.config()

Keybase proof

I hereby claim:

  • I am mrueg on github.
  • I am mrueg (https://keybase.io/mrueg) on keybase.
  • I have a public key whose fingerprint is 00DF 3682 3209 4A42 3D83 D818 C941 4F60 E0A2 651F

To claim this, I am signing this object:

#!/bin/bash
mkdir -p /mnt/gentoo
mount LABEL="root" /mnt/gentoo
mkdir -p /mnt/gentoo/boot
mount LABEL="BOOT" /mnt/gentoo/boot
cp -L /etc/resolv.conf /mnt/gentoo/etc/
mount -t proc proc /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --make-rslave /mnt/gentoo/sys
@mrueg
mrueg / rspamd-json-exporter.yml
Created October 14, 2020 22:38
rspamd-json-exporter.yml
- labels:
host: fancyhostname
name: rspamd_actions_add_header
path: "$.actions.add header"
- labels:
host: fancyhostname
name: rspamd_actions_no_action
path: "$.actions.no action"
- labels:
host: fancyhostname