Skip to content

Instantly share code, notes, and snippets.

View elisboa's full-sized avatar
🎓
learning git

Eduardo Lisboa elisboa

🎓
learning git
View GitHub Profile
### Keybase proof
I hereby claim:
* I am elisboa on github.
* I am elisboa (https://keybase.io/elisboa) on keybase.
* I have a public key ASBae1y0L7QLHVyyxKSiV2BnjfEg6levcx9KW-wLm9vGFQo
To claim this, I am signing this object:
@elisboa
elisboa / diceware.wordlist.pt.txt
Created March 2, 2020 15:55 — forked from patxipierce/diceware.wordlist.pt.txt
A diceware wordlist for the Portuguese language.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
11111 a
11112 aa
11113 aaa
11114 aaaa
11115 ab
11116 aba
11121 abaco
@elisboa
elisboa / fluxcontrol.sh
Created March 13, 2020 14:40
Exemplo de controle de fluxo envolvendo 2 shell scripts
#!/bin/bash
# fluxcontrol.sh
# Script para mostrar como se controla o fluxo com base no código de erro de outro script
# Autor: Eduardo Lisboa <[email protected]>
# Chame o script 1 normalmente:
# $ script1.sh
# Dentro dele, ao chamar o script2, utilize o seguinte controle:
if script2.sh
then
@elisboa
elisboa / sortfiles.py
Created May 16, 2021 21:37
Sort Files in python
#!/usr/bin/env python3
### WARNING CODE IS INCOMPLETE
# NEED TO PUT ARGUMENT PARSING ON A TRY/CATCH STRUCTURE
# Sortfiles is a simple script that reads the creation date of a JPG or CR2 file, creates a directory structure of Year/Month/Day and then moves it to this destation directory.
# Libs
import os
@elisboa
elisboa / sortfiles.sh
Created May 17, 2021 01:11
Sort Files Shell Script
#!/usr/bin/env bash
setvars()
{
ORIGIN_PATH="."
DESTIN_PATH="."
Full_File_Path="."
File_Year="0001"
File_Month="01"
@elisboa
elisboa / sortfiles-exif.sh
Last active August 22, 2022 16:59
A simple script to sort photo files based on their exif information
#!/usr/bin/env bash
# ---
#!/bin/bash -x
echo -e "### WELCOME TO $0\n"
if [[ -z ${DEST_DIR} ]]
then
TIMESTAMP=$(date +%s)
echo -e "Setting destination dir as ${TIMESTAMP}"
@elisboa
elisboa / sortfiles-exiftool.sh
Last active January 7, 2023 22:45
Photo and Video file sorter based on exiftool
#!/usr/bin/env bash
# ---
#!/bin/bash -x
echo -e "### WELCOME TO $(basename $0)\n"
if [[ -z ${DEST_DIR} ]]
then
TIMESTAMP=$(date +%s)
DEST_DIR=${TIMESTAMP}