I wrote this script to monitor my Amazon EC2 servers and LoadBalancers, this script is able to get any metrics avaiable at the cloud-watch. For it to work you will need the amazon api commands working, here is how to […]
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 […]
auto scale script
This can help if you are creating any kind of auto scale on Amazon AWS. It is not a 100% automatic, as you will need to prior to running this have: Pre-requisites on how to run the AWS command lines […]
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
check logfiles script
Not so generic way to check ‘any’ logfile for erros I have written at least about 5 variations of this same script. Some more flexible and genereal purpose. But in the end I have been writing customs made out of […]
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 […]
