Skip to content

Instantly share code, notes, and snippets.

@gut5
gut5 / add_timestamp_with_imagemagick.sh
Created December 20, 2017 19:29
Add timestamp to photos using Imagemagick
for img in *jpg; do convert "$img" -gravity SouthWest -pointsize 200 \
-fill red -annotate +30+30 %[exif:DateTime] "time_""$img";
done
@gut5
gut5 / InitialSetup.sh
Last active February 7, 2022 20:40
InitialSetup.sh
#!/bin/sh
#wget https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
#sudo mv hosts /etc/hosts
#for opensuse
#sudo zypper install neovim git sqlite sensors podman
# atop
# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
@gut5
gut5 / helpful_scripts.sh
Last active December 24, 2023 13:10
Useful Linux scripts
#Script to find big files on Linux
#change 500M to required size
find / -type f -size +500M -exec ls -lh {} \; | awk '{ print $NF ": " $5 }'
# fstrim with output
sudo fstrim --fstab --verbose