Skip to content

Instantly share code, notes, and snippets.

View ollieparanoid's full-sized avatar

Oliver Smith ollieparanoid

View GitHub Profile
@MartijnBraam
MartijnBraam / diffconfig.py
Created January 17, 2018 13:29
Tool to diff kernel configs
def parse_config(raw):
result = {}
for line in raw.splitlines():
if line.startswith("#"):
continue
if line.strip() == "":
continue
key, value = line.split("=", maxsplit=1)
result[key] = value