Skip to content

Instantly share code, notes, and snippets.

@hikhvar
hikhvar / gist:6367b842a4ce514870e7c3db035abd98
Created June 13, 2026 12:42
Python Script fetching the affected AUR packages from the atomic lock attack and compare with installed packages. Check if they have been updated after 8th of June.
#!/usr/bin/env python3
"""Fetch a package list and report which entries were installed/updated on this
machine after a cutoff date, along with the latest action date for each.
Source list: a HedgeDoc note containing one package name per line.
Install history: /var/log/pacman.log ([ALPM] installed/upgraded lines).
"""
import re
import sys
@hikhvar
hikhvar / gist:3d180dc2d776ee2c33103c293ec4c37d
Created April 12, 2021 06:19
output of testify assert
christoph@thinkpad-sport ../GO/src/github.com/hikhvar/ts3exporter (git)-[master] % go test github.com/hikhvar/ts3exporter/pkg/serverquery
ok github.com/hikhvar/ts3exporter/pkg/serverquery (cached)
christoph@thinkpad-sport ../GO/src/github.com/hikhvar/ts3exporter (git)-[master] % vim pkg/serverquery/parser_test.go
christoph@thinkpad-sport ../GO/src/github.com/hikhvar/ts3exporter (git)-[master] % go test github.com/hikhvar/ts3exporter/pkg/serverquery
--- FAIL: TestParse (0.00s)
--- FAIL: TestParse/channellist (0.00s)
parser_test.go:65:
Error Trace: parser_test.go:65
Error: Not equal:
expected: serverquery.Result{Raw:"cid=1 pid=0 channel_name=Default\\sChannel|cid=8 pid=0 channel_name=Weiß\\snicht\\swie\\sman\\sTS\\sbeendet\\s(AFK)", Items:[]serverquery.Parsed{serverquery.Parsed{"channel_name":"Default Channel", "cid":"1", "pid":"1"}, serverquery.Parsed{"channel_name":"Weiß nicht wie man TS beendet (AFK)", "cid":"8", "pid":"0"}}}