Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block hexdefined

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
hexdefined /
Last active Jan 3, 2020
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))
hexdefined /
Created Jan 21, 2019
Colour picker
maim -u -g $(slop -t 0 -f '1x1+%x+%y') | convert - rgb:- | od -An -tu1 -v -w3 | while read r g b; do
hex="#$(printf '%02x' $r $g $b)"
printf "\033[48;2;$r;$g;${b}m \033[0m \033[1m\033[37m$hex\033[0m\n"
printf $hex | xsel -b

Keybase proof

I hereby claim:

  • I am hexdefined on github.
  • I am hexdefined ( on keybase.
  • I have a public key ASDElWdTtQPlHOfqrktAy2KyNmCBoPEkmYN-Om830HUStAo

To claim this, I am signing this object:

You can’t perform that action at this time.