Skip to content

Instantly share code, notes, and snippets.

View gmm96's full-sized avatar

Guillermo Montes gmm96

View GitHub Profile
@gmm96
gmm96 / amazon_music.desktop
Last active April 15, 2026 20:20
Fix missing icon for Chrome Applications
[Desktop Entry]
Comment[es_ES]=
Comment=
Exec=( /opt/google/chrome/google-chrome --profile-directory=Default --app-id=mnlencgjbmdnecjlniianjkpemfocoke && xdotool search --sync --classname crx_mnlencgjbmdnecjlniianjkpemfocoke set_window --class crx_mnlencgjbmdnecjlniianjkpemfocoke ) &
GenericName[es_ES]=
GenericName=
Icon=~/.local/share/icons/hicolor/256x256/apps/chrome-mnlencgjbmdnecjlniianjkpemfocoke-Default.png
MimeType=
Name[es_ES]=Amazon Prime Music
Name=Amazon Prime Music
@gmm96
gmm96 / rm_double_instance.sh
Last active September 29, 2018 04:20
Remove double instances in Linux
case "$(pgrep -f "python tts.py" | wc -w)" in
0) echo "Restarting tts.py by cron : $(date)" >> log/restarts.txt
python tts.py &
;;
1) # all ok
;;
*) echo "Removing double instances : $(date)" >> log/restarts.txt
sudo pkill -f "python tts.py"
python tts.py &
;;