The program deduplicate-photos.sh helps to deduplicate the family photos.
List of sub-parts:
- deduplicate-photos-copy.sh
| -- READ (in Portuguese): | |
| -- http://www.savepoint.blog.br/2018/02/17/chaves-artificiais-no-postgresql-desempenho/ | |
| -- https://gist.github.com/rponte/bf362945a1af948aa04b587f8ff332f8 | |
| ---------------------------------------------------------------------------- | |
| -- PRE-TEST: create tables | |
| ---------------------------------------------------------------------------- | |
| -- Install UUID-OSSP extension |
| <!DOCTYPE html> | |
| <html> | |
| <!-- Yes, I know the jokes about long if-else chains. I just don't feel like using a hash table here. --> | |
| <head> | |
| <title>Corretor de Caracteres Especiais - v20220721</title> | |
| <meta charset="UTF-8"> | |
| <meta name="author" content="Fabio Lima"> | |
| <meta name="keywords" content="Codificação, Caracteres, ISO-8859-1, UTF-8, WINDOWS-1252"> | |
| <meta name="description" content="Sustitui caracteres invalidos por caracteres equivalentes"> | |
| <script> |
| #!/bin/bash | |
| # Cronometro simples feito em Shell. | |
| # Script criado apenas para fins de estudo. | |
| # Para parar, use um [ctrl] + C. | |
| # Autor: Fabio Lima | |
| # Data: 2009-02-14 | |
| # Inicializacao das variaveis | |
| SS=0; | |
| MM=0; |
| #!/bin/sh | |
| # Local: /usr/local/bin/ | |
| # Bateria: programa de medicao de capacidade da bateria | |
| # Autor: Fabio Lima CE | |
| # Data: 25-12-2009 | |
| echo "" | |
| cat /proc/acpi/battery/BAT1/info \ | |
| | grep "last full capacity:" \ | |
| | cut -c26-29 \ |
| #!/usr/bin/python3 | |
| # | |
| # This is an proposed implementation for this PR: https://github.com/uuid6/uuid6-ietf-draft/pull/10 | |
| # | |
| # @date: 2021-03-06 | |
| # @author: Fabio Lima | |
| # | |
| # Changelog: | |
| # - 2021-03-16: add parameter `subsec_decimal_digits` to function `uuid7()` | |
| # - 2021-03-08: use `time.time_ns()` instead of `time.time()` to fix nanosecond precision |
| #!/bin/env python3 | |
| import string | |
| from uuid import uuid4 | |
| alphabet_b16 = "0123456789abcdef" # base-16 | |
| alphabet_b32 = "abcdefghijklmnopqrstuvwxyz234567" # base-32 | |
| alphabet_b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" # base-64 |
| #!/bin/env python3 | |
| import string | |
| from uuid import uuid4 | |
| alphabet_b36_lower = "0123456789abcdefghijklmnopqrstuvwxyz" # base-36 | |
| alphabet_b36_upper = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" # base-36 | |
| alphabet_b58_lower = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ" # base-58 | |
| alphabet_b58_upper = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" # base-58 (used in BTC) |
| package your.package; | |
| public class CharacterRange { | |
| /** | |
| * Expands character ranges similar to 0-9, a-z and A-Z. | |
| * | |
| * @param string a string to be expanded | |
| * @return a string | |
| */ |
| #!/usr/bin/python3 | |
| import zlib | |
| import base64 | |
| import random | |
| import string | |
| import hashlib | |
| def crc32(text): | |
| return zlib.crc32(text.encode()) |