auto scale script

May 14th, 2013 No comments

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:
1. The instance image setup just how you need it, and ami-id ref.
2. The loadbalancer created and configured to use zones us-east-1d,us-east-1a
After running the script
1. Create the CloudWatch Alarms I have been using EC2 Aggregated by Scale Group: HIGHCPU (add 1 instance) LOWCPU (remove 1 instance) you can also set the highcpu to send you an e-mail. You can also use HighLatency to add 1 instance.

Continue reading “auto scale script” »

Fix Install of Citrix Reciever on Ubuntu 12.04 x64

May 3rd, 2013 No comments

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):

Continue reading “Fix Install of Citrix Reciever on Ubuntu 12.04 x64” »

How to convert mkv to avi

April 30th, 2013 No comments

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

April 17th, 2013 No comments

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 this skel

Continue reading “check logfiles script” »

How to find and replace text using vi

April 17th, 2013 No comments

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.

Continue reading “How to find and replace text using vi” »

Tags: , , , , ,

How to fix mod_ssl CRIME attack

April 16th, 2013 No comments

More detailed information on what and how the attack works is here

Continue reading “How to fix mod_ssl CRIME attack” »

Fix KB2823324

April 15th, 2013 No comments

Microsoft BUG
So my old laptop just got updated with a MS destruction patch KB2823324 !

Here is how to fix it

Continue reading “Fix KB2823324” »

check_conntrack_unreplied

March 27th, 2013 No comments

Our front end varnish servers expierence a lot of traffic and we currently
must have a iptables NAT that routes from port 80 to port 81, where the varnish daemon listen to traffic. Doing this we end up using the iptables conntrack feature.

Continue reading “check_conntrack_unreplied” »

font woff problem

March 21st, 2013 No comments

roblem:
The default webserver (Apache/IIS) does not have some fonts format ‘we’ added to the website
This result in the browser, specially firefox to take long time to load the page.
The problem is clearly much worst in Firefox, do it yourself a test open this on each browser

http://www.stevesouders.com/tests/font-face/fout.php

Continue reading “font woff problem” »

bash date convert epoch time

March 21st, 2013 No comments

Many times you will need to conver Unix/Linux epoch time to a readable date format
That is quite simple

Continue reading “bash date convert epoch time” »