Skip to content

Instantly share code, notes, and snippets.

@hexdefined
hexdefined / jd-gui.sh
Last active September 8, 2024 15:22
Patch JD-GUI to use a dark theme
sed -i '/<lookAndFeel>/{s/javax\.swing\.plaf\.metal\.MetalLookAndFeel/com\.bulenkov\.darcula\.DarculaLaf/}' ~/.config/jd-gui.cfg
java -Dhidpi -Dswing.aatext=true -Dawt.useSystemAAFontSettings=on -jar jd-gui-mod.jar
@hexdefined
hexdefined / wireshark-dark.py
Last active October 11, 2023 19:39
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
hexdefined / pick.sh
Created January 21, 2019 12:02
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
done

Keybase proof

I hereby claim:

  • I am hexdefined on github.
  • I am hexdefined (https://keybase.io/hexdefined) on keybase.
  • I have a public key ASDElWdTtQPlHOfqrktAy2KyNmCBoPEkmYN-Om830HUStAo

To claim this, I am signing this object: