Category Archives: ubuntu

Generate easy passwords

This script generates combinations of words to form a password. These passwords are easier to remember than true random garbage combinations, which can’t be remembered by anyone. Moreover the passwords are not dictionary words and too difficult to be guessed … Continue reading

Posted in bash, linux, macosx, regex, ubuntu | Tagged , , , , , | Leave a comment

Watermark all images

Recently I had to watermark around 500 images for an existing site. Images are replaced with watermarked images! I had problems with temporary/hidden images in the directory so the find statement contains a ! -name “.*” which negates hidden files … Continue reading

Posted in bash, find, linux, macosx, ubuntu | Tagged , , | Leave a comment

Get filename and or extension

This script uses the filename and the extension of a file using shell scripts. This is useful when you have to rename a file or its extension. filenameextension.shraw download  #!/bin/sh # Name: filenameextension.sh # Author: kdguntu@gmail.com # Function: Show filename … Continue reading

Posted in bash, cut, linux, macosx, ubuntu | Tagged , , , , , | Leave a comment

Check if running chrooted

This script checks if we are running in a chroot environment checkchroot.shraw download#!/bin/sh # Name: checkroot.sh # Author: kdguntu@gmail.com # Function: check if the script is running within a chroot environment # Parameter: none # Copyright: 2011 kdguntu@gmail.com GNU GPL … Continue reading

Posted in bash, chroot, linux, stat, ubuntu | Leave a comment