/scripts

Primary LanguageShellGNU Affero General Public License v3.0AGPL-3.0

General

Collection of scripts that I created and used in my life.

passwords.sh

Allow to securely save your passwords on your computer. Passwords will be saved under "~/Private/passwords.txt.gpg" and encrypted using gpg using a master passwords. If you forgot your master passwords you won't be able to decrypt the file anymore.

Prerequisite

To use this script you must install gpg.

Initialization

mkdir ~/Private
cd ~/Private
echo "----------------------------------------------------------------------------------------------" > passwords.txt
echo "|   Site                                | Username        | Password     | Extra Info        |" >> passwords.txt
echo "----------------------------------------------------------------------------------------------" >> passwords.txt
echo "| www.example.com                       | MyUser          | MyPass       |                   |" >> passwords.txt
echo "----------------------------------------------------------------------------------------------" >> passwords.txt
gpg -c passwords.txt
rm passwords.txt

Usage

To see a password:

passwords.sh see example

To edit a passwords:

to be implemented

photoCompress.sh

Resizes all jpg files in the current folders to a new image of size more or less 2400x1800 It keeps the ratio of the photo. It does not actually change the current photos but create a copy in a new folder 'resized'

Usage

Resizes photos in current folders:

photoCompress.sh