Skip to content

Instantly share code, notes, and snippets.

View chainria's full-sized avatar

Chel Sea chainria

  • SIPit Kommunikationsmanagement GmbH
  • Vienna, Austria
View GitHub Profile
@chainria
chainria / discord-refetch-images.sh
Created June 21, 2022 06:12
Refetch broken images from discord CDN by extracting from logs, start from .purple/logs/discord/YOUR_ACCOUNT
#!/bin/bash
for x in $(find . -size 1048576c -name "*.png"); do
C=$(echo "$x" | cut -d "/" -f 1);
F=$(basename "$x");
U=$(grep -ri "$F" "$C" | cut -d '"' -f 6);
echo "$x: $C/$F => $U";
wget -cO $x $U;
done