Skip to content

Instantly share code, notes, and snippets.

View fqdeng's full-sized avatar
🎯
Focusing

fqdeng fqdeng

🎯
Focusing
View GitHub Profile
#!/bin/bash
export ZSH_CUSTOM=$HOME/.oh-my-zsh
# Check if Git is installed
if ! command -v git &> /dev/null; then
echo "Git is not installed. Installing Git..."
# Install Git (You may need to adjust this based on your package manager)
sudo apt-get install git # For Debian/Ubuntu
# or
@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'