Skip to content

Instantly share code, notes, and snippets.

View petersgiles's full-sized avatar
💭
forking everything

Pete petersgiles

💭
forking everything
View GitHub Profile
@petersgiles
petersgiles / install-clamav-osx.md
Created June 3, 2018 10:39 — forked from gagarine/install-clamav-osx.md
Howto Install clamav on OSX with brew

Howto Install clamav on OSX with brew

$ brew install clamav
$ cd /usr/local/etc/clamav
$ cp freshclam.conf.sample freshclam.conf

Open freshclam.conf and comment the "Example" line:

for run in {0001..0999}; do curl "https://inspirobot.me/api?generate=true" | xargs curl -o inspirobot-${run}.jpg; done
@petersgiles
petersgiles / itunes_dedup.py
Last active January 15, 2023 20:38
Dedup Itunes library
# Please be very careful while using this script, as the os.remove(file_path) command will delete the file permanently.
# Make sure you have a backup of your iTunes library before running this script.
# Also, this script will only prompt the user for deleting the duplicate files in the album that contains duplicate files.
import os
import hashlib
itunes_library = "/path/to/iTunes/Library"
# Create a dictionary to store file hashes