Skip to content

Instantly share code, notes, and snippets.

@ichramm
ichramm / check-aur-updates.sh
Last active March 4, 2021 00:36
(Archlinux) Update check for packages installed from the AUR
#!/bin/bash
pacman -Qmq | while read package; do
cur_version=$(pacman -Qi $package | egrep 'Version *:' | sed 's/Version *: *//'); # fast
aur_version=$(yaourt -Si $package | egrep 'Version *:' | sed 's/Version *: *//'); # slow
if [ "$cur_version" = "$aur_version" ]; then
echo -e "\e[0;32mUp to date: \e[0m$package";
else
echo -e "\e[1;33mNeeds update: \e[0m$package \e[0;33m(installed: $cur_version, aur: $aur_version)\e[0m";
fi
@sckzw
sckzw / README.md
Last active August 26, 2016 17:19
Python script to delete duplicate tracks from Google Play Music library.

Python script to delete duplicate tracks from Google Play Music library. Please retry until "No duplicate songs" message is displayed. Use this script at your own risk. gmusicapi is required.