This script monitor Apache ./check_apache OK – Apache Status Req/s = 0.6 Idel = 4 Busy = 7|Req=0.6;Idle=4;Busy=7 Tested on Ubuntu 12.04 lighthttpd and It works only whe apache mod_status is on. I also included security on the mod_status access […]
how to add a RAM HD
Procedure how to add a RAM HD into Linux, tested on RedHat/CentOS # grubby –update-kernel=`grubby –default-kernel` –args=’ramdisk_size=2048000′ # reboot … after boot … # dd if=/dev/zero of=/dev/ram1 bs=1k count=2048000 # mkfs -t ext3 -j -m 0 /dev/ram1 # mkdir /mnt/ConversaoMem […]
How to use lftp
This is a quite handy command, of course you have also curl and wget. But I kind of like lftp because there is so many diferent configurations that can be set, it seems it also work for torrents! The configuration […]
How to setup aws cmd line tools
To be able to execute the many API command line tools you will need to setup and configure the authentication correctly. This will help you to do just that. 1. Download the Autoscalling CLI, CloudWatch and ec2-API-Tools cd /opt wget […]
Fix Install of Citrix Reciever on Ubuntu 12.04 x64
Fix Install of Citrix Reciever on Ubuntu 12.04 x64 I had two errors: 1. /var/lib/dpkg/info/icaclient.postinst: 696: /var/lib/dpkg/info/icaclient.postinst: nspluginwrapper: not found 2. dpkg: error processing icaclient (–install): Solution: 1. sudo apt-get install nspluginwrapper 2. sudo vi /var/lib/dpkg/info/icaclient.postinst Find echo $Arch|grep “i0-986” […]
How to convert mkv to avi
It worked for me on Ubuntu 12.10 ffmpeg -i video.mkv -vcodec msmpeg4 -b 24576k -s hd720 -acodec libmp3lame -ab 128k -ac 2 video.avi
How to find and replace text using vi
How to find and replace text using vi or vim Both vi and vim text editor comes with substitute command for finding and replacing text. The syntax is as follows: :%s/WORD-To-Find-HERE/Replace-Word-Here/g OR :%s/FindMe/ReplaceME/g Examples The substitute command can be used […]
