This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import mutagen.id3 | |
tryencodings = ['cp1251'] | |
path = './' | |
def findMP3s(path): | |
for child in os.listdir(path): | |
child = os.path.join(path, child) | |
if child.lower().endswith(".mp3"): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
redis-cli keys "*" | while read LINE ; do | |
TTL=`redis-cli ttl "$LINE"` | |
if [ $TTL -eq -1 ]; then | |
echo "$LINE" | redis-cli del | |
fi | |
done |