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
#!/usr/bin/env python3 | |
"""Scan recursively a given directory and find duplicates files within it. | |
You can use this module as is by invoking it from the command shell: | |
~$ python3 deduplicate.py /path/to/scan | |
""" | |
import dataclasses | |
import hashlib |
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/bash | |
# | |
# Create an encrypted (secure) partition for your flash drive. | |
# | |
ROOT_UID=0 | |
SUCCESS=0 | |
FAIL=1 | |
E_NOTROOT=87 | |
E_MOUNTED=86 | |
E_FORMAT=85 |
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/bash | |
# | |
# Add/update metadata to an existing PDF file. | |
# Encrypt it with random password. | |
# | |
CREATOR="Diego Arias" | |
TITLE="Document title" | |
PRODUCER="GNU/Linux PDF" | |
KEYWORDS="keyword1, keyword2" | |
SUBJECT="Document subject" |