The first post for this year… Simple FTP backup script # nano backup_script# nano backup_script Add next lines and save. #!/bin/bash DM=$(date +"%Y-%m-%d") tar -Pzcf /backup/backup_$DM.tar.gz /backup/some_dir/ cd /backup ftp …
Category: Tips & Tricks
Reducing ibdata1 – howto
One of the biggest mistakes you can make with MySQL is to leave its default configuration. It will work, but not as it should. For example, default MySQL installation (5.0x) …
Remove spikes from RRD graphs – howto
Round robin works with a fixed amount of data, and a pointer to the current element. This can be described like a circle with N dots plotted on the edge …
YUM problem: rpmdb: Lock table is out of available locker entries
Few days ago I had a strange problem with yum and instead of clean install and update process I got Python errors and rpm message “rpmdb: Lock table is out …
Manual MySQL update on RHEL/CentOS
If you’re using RH based distros, you’ll probably notice that their habbit is to keep the same software versions in one release. For example, if you need PHP on CentOS …
Postfix quota notification email script
If you want to take care about your users quota and your storage space, check this … 1. Create new file (for example quota_notify inside /usr/local/sbin/ ) 2. Copy next …
Batch processing millions of images
I just want to share one link about processing millions of images. Here it is – LINK
Using PHP as a shell scripting language
As most of us already know, PHP is one of the most popular scripting language for developing dynamic web pages. But you probably don’t know that PHP can be used …
Check what ports are open
To see what ports are open in your Linux box, you can use nmap port scanner or you can use netstat. nmap can be used with following command: # nmap …
Panda USB and AutoRun Vaccine
The MS Windows OS-es uses the AUTORUN.INF file from removable drives (USB, CD, DVD,…) in order to know which actions to perform when a new external storage device is inserted …