Skip to content

Instantly share code, notes, and snippets.

View dunielpls's full-sized avatar

Daniel Isaksen dunielpls

View GitHub Profile
@dunielpls
dunielpls / wireshark-dark.py
Created October 11, 2023 19:39 — forked from hexdefined/wireshark-dark.py
Invert the luminosity of Wireshark packets (for dark themes)
#!/usr/bin/env python3
import fileinput
import re
from colorsys import *
def rgb_to_hsl(r, g, b):
return hsv_to_hsl(*rgb_to_hsv(r, g, b))
def hsl_to_rgb(h, s, l):
return hsv_to_rgb(*hsl_to_hsv(h, s, l))