Skip to content

Instantly share code, notes, and snippets.

View fqdeng's full-sized avatar
🎯
Focusing

fqdeng fqdeng

🎯
Focusing
View GitHub Profile
@fqdeng
fqdeng / datagrip-copy-pwd.py
Created June 11, 2025 07:00 — forked from EvgeniGordeev/datagrip-copy-pwd.py
Reveal DataGrip passwords saved in Keychain
import re
import subprocess
if __name__ == '__main__':
# located in project folder .idea/dataSources.xml
with open('dataSources.xml', 'r') as f:
data = f.read()
data_sources = sorted(re.findall(r".*data-source.*name=\"(.*?)\".*uuid=\"(.*?)\".*", data))
for name, uuid in data_sources:
command = f'security find-generic-password -l "IntelliJ Platform DB — {uuid}" -w'