Bash – Unix – Create Encrypted Disk
NOTE: This script currently only natively will work in a UNIX (Debian, Ubuntu, Red Hat, Rocky, CentOS, Fedora, etc.) operating system and will NOT natively work in a macOS or Windows operating system.
NOTE: This script currently only natively will work in a UNIX (Debian, Ubuntu, Red Hat, Rocky, CentOS, Fedora, etc.) operating system and will NOT natively work in a macOS or Windows operating system.
If you have a directory with a lot of files/directories in it and need it to be smaller this block will help by grouping 400 files at a time into different sub-directories.
NOTE: This will typically only work on pictures that have been obtained from the camera that took the picture. (Social media services typically remove the needed information to get the EXIF info to determine the camera type.) Prerequisite is to install exiftool (See https://exiftool.org for more installation help) In this first block of code you…
This can be helpful if you have larger files in your git directory. Change ~/repo to the directory you wish to check, you can also use a . for the current directory
After an upgrade of the macOS you sometimes will lose the capability to SSH into other computers/servers. The code below will add the needed pieces to be able to SSH again. Please note that some sites will state to do ‘HostKeyAlgorithms +ssh-rsa,ssh-dss’ but ssh-dss was discontinued in 2015 and mostly should not work.
Similar to “PowerShell – Rename Pictures to Image Taken“, this script will work on macOS and most Unix systems (Fedora/CentOS/Rocky/Red Hat (RHEL) and Ubuntu/Debian for example). NOTE: This is an update to a previous posted version of this script. Both exist to provide some options. Previous post: BASH – Picture / Video File Name Manipulation…
Sometimes you need a simple log to know when a site is up or down. Create a script like below and then put it in your crontab.
Often there are needs to rename a picture or video to help with organizing the files on a computer or in cloud storage. The code below can help to make some organization easier. For those that are not use to the date format used below, it is specifically chosen to make it easier to organize…