Skip to content

Instantly share code, notes, and snippets.

View matissime's full-sized avatar
✌️

Matissime matissime

✌️
View GitHub Profile
@matissime
matissime / photo_raw_jpeg_file_keeper.sh
Created January 31, 2023 18:06
This little bash script is useful to manage and sort photo in bulk, once you deleted all the unwanted JPEG image, run the script in the folder to delete all the corresponding raw file
#!/bin/bash
mkdir unwanted #create a directory to store unwanted file
for file in *.NEF; do #for each .NEF find a .JPG file that as the same name
jpg_file="${file%.*}.JPG"
if [ ! -e "$jpg_file" ]; then #if a .NEF does not have a corresponding .JPEG file, move the .NEF file in the folder
mv "$file" ./unwanted/"$file"
fi
done

How to update IP addressing on a Proxmox Cluster

When you change something in your network configuration, rather than its the gateway or the IP addressing, you may come under serious troubleshooting on your Proxmox Cluster, so this document will guide you into the necessary steps needed to update your network settings on Proxmox.

Note : You must follow these steps on every single node of your cluster to let it able to handle the synchronization between each node once.

So firstly, you will need to change the network interface configuration of the system; it is preferable for you to set a static IP:

/etc/network/interfaces