copypaste: https://gist.github.com/liba2k/d522b4f20632c4581af728b286028f8f
Automation for the creation of a project in ghidra from python3 adapted for bspwm. :)
chmod +x ghidra.py
cp ghidra.py /usr/bin/ghidra.py
ghidra.py binary.exe
ghidra.py binary.gpr
ghidra.py binary.exe -t # -t o --temp saves the files in /dev/shm