Skip to content

Instantly share code, notes, and snippets.

@j4ncp
j4ncp / generate_unified_kernel.sh
Created March 8, 2022 22:32
Helper script to generate a signed unified kernel image in Gentoo for systemd-boot
#!/bin/bash
# Author: Jan C Peters
#
# Description:
# Creates a unified kernel image for systemd-boot (which
# is assumed to be installed already) and places it in the
# appropriate folder in the ESP for systemd-boot to find it.
# The commandline for it is taken from the file
# /etc/kernel/cmdline, which is also used by kernel-install.
@j4ncp
j4ncp / convert_vcf_to_xml.py
Last active March 8, 2022 22:14
Convert vcf (vcard) addressbook to an XML phonebook format that can be loaded (restored) in FritzBox web UI
#!/usr/bin/python3
from argparse import ArgumentParser
import xml.etree.ElementTree as ET
from time import time
# external lib
import vobject
type_dict = {