Skip to content

Instantly share code, notes, and snippets.

View julian-klode's full-sized avatar

Julian Andres Klode julian-klode

View GitHub Profile
#!/bin/bash
[ -e $XDG_RUNTIME_DIR/OVMF_VARS.fd ] || cp /usr/share/OVMF/OVMF_VARS.ms.fd $XDG_RUNTIME_DIR/OVMF_VARS.fd
kvm -smp 2 \
-m 4096 \
-cpu host \
-M q35 \
-drive if=pflash,format=raw,readonly,file=/usr/share/OVMF/OVMF_CODE.fd \
@julian-klode
julian-klode / shim-review-request.md
Created March 20, 2020 16:08
shim-review-request.md

(tl;dr same as #82 + an additional patch, and now built in Ubuntu 20.04 instead of 19.10)

Make sure you have provided the following information:

  • link to your code branch cloned from rhboot/shim-review in the form user/repo@tag
  • completed README.md file with the necessary information
  • shim.efi to be signed
  • public portion of your certificate embedded in shim (the file passed to VENDOR_CERT_FILE)
  • any extra patches to shim via your own git tree or as files
  • any extra patches to grub via your own git tree or as files
#!/usr/bin/python3
#
# Copyright (C) 2019 Julian Andres Klode
#
# SPDX-License-Identifier: AGPL-3.0-or-later
#
import json
import requests
import os

Keybase proof

I hereby claim:

  • I am julian-klode on github.
  • I am julianklode (https://keybase.io/julianklode) on keybase.
  • I have a public key ASATNYfDeu0km1-g-ZY8ECurwuNlKjkY5bLLKeCCk39inAo

To claim this, I am signing this object:

#!/usr/bin/python3
#
# Copyright (C) 2020 Julian Andres Klode <[email protected]>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
"""Takes a Chrome CSV on stdin, and produces a Bitwarden JSON export on stdout.
The output only contains relevant fields, and logins are merged together based
on user name and password.
#include <apt-pkg/cachefile.h>
#include <apt-pkg/cachefilter.h>
#include <apt-pkg/debversion.h>
#include <apt-pkg/error.h>
#include <apt-pkg/init.h>
#include <apt-pkg/pkgsystem.h>
#include <apt-pkg/strutl.h>
#include <cstdlib>
#include <iostream>
#include <regex>
import csv
import difflib
with open("a1jx52.csv") as ftse:
ftse_list = list(csv.reader(ftse))
with open("IUSN_holdings.csv") as small:
small_list = list(csv.reader(small))
def clean(s):
for c in ". ,":
#!/usr/bin/python3
import urllib.request
import time
import apt_pkg
import subprocess
import sys
def get_ping(cdn):
#!/usr/bin/gnuplot
#
# speed - simple speed measuring tool using Debian repository download - plotting
#
# SPDX-FileCopyrightText: 2020 Julian Andres Klode <[email protected]>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
set datafile separator ","
set terminal png size 2560 ,1440
set title "Bandbreitenmessung / Bandwidth measurement - Deutsche Glasfaser"
; $ hledger -f f bal -p 2020 --value=end assets -Y
; Period-end value changes in 2020:
;
; || 2020
; ====================++=========
; assets:investments || -13.59€
; --------------------++---------
; || -13.59€
; $ hledger -f f bal -p 2020 --value=end assets
; -9.79€ assets:investments