Skip to content

Instantly share code, notes, and snippets.

View lihas's full-sized avatar
💭
OpenGL

sahil lihas

💭
OpenGL
View GitHub Profile
@lihas
lihas / gist:6514840808159f3892806b80871dba12
Created December 7, 2021 05:28
Canon Digital Photo Professional installer (direct link)
https://gdlp01.c-wss.com/gds/7/0200006477/01/dppw4.15.20-installer.zip
@lihas
lihas / DirectoryCompareConsole.py
Created February 6, 2022 16:57
This python script compares files in two directories on their md5 hash. lists the files which have same md5, and the ones which don't. I use this to verify my file backups. The directory structures are different hence a direct folder comparison with tools like beyond compare (compare on contents) wont work.
# This is a Python script.
#This python script compares files in two directories
# on their md5 hash. lists the files which have same md5,
# and the ones which don't. I use this to verify my file backups.
# The directory structures are different hence a direct folder
# comparison with tools like beyond compare (compare on contents) wont work.
import glob
import os
import hashlib
# This is a Python script.
# Same as previous version except with thread worker
# for one particular run the previous script took 21 mins, while this one took 14 mins
# This python script compares files in two directories
# on their md5 hash. lists the files which have same md5,
# and the ones which don't. I use this to verify my file backups.
# The directory structures are different hence a direct folder
# comparison with tools like beyond compare (compare on contents) wont work.
import glob