Bash – Find files greater than 100 mb
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
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…
Start out with a headless (no GUI) Raspberry Pi OS (Raspbian) With the SD Card still mounted in your computer, create a ssh file to start with SSH enabled (Note: no extension, no text) After a few seconds of letting the SD Card load in the Raspberry Pi find the IP and SSH into it…