Zenity progress pulsate bar dialog example

Here is an example of Zenity progress pulsate bar dialog. Depending on your desktop manager your output may be different:
yes | zenity –progress –width 350 –pulsate –text “Testing Zenity Progress Bar” –title “Zenity Pulsate Progress Bar”

PHP Redirect HTTP/1.1 301 Moved Permanently index.php script

To create permanent redirect with php is very easy task. All what needs to be done is the create file index.php in your root directory of the site which you want to redirect from with following content:
<?
Header( “HTTP/1.1 301 Moved Permanently” );
Header( “Location: http://www.yoursitetoredirect.com” );
?>
Here you can test your php  301 Moved Permanently redirect.

Remove white space from file name and rename it with bash command

Some Linux tools does not properly work with files which include spaces in their names. This simple bash for loop will remove white space from file names and rename/move for all files in the given directory.
First enter directory with cd:
cd /my/directory
and then run:
for f in *; do mv “$f” `echo $f | tr ‘ ‘ [...]