Skip to main content

Posts

LAN Ethernet Maximum Rates, Generation, Capturing & Monitoring

I had been working on maximum throughput you expect from an Ethernet link and while inspecting tcp/ip packets I reviewed the protocol which appeared to have some overhead that will in fact be reported as network utilisation but higher protocol at application layer will not report as much as the network device will be reporting. I also came across this article and must say it is an excellent insight to udp and tcp protocols running on ethernet or fast ethernet copper. It also explains the frame size implications, protocol overhead and windowing. The article can be accessed using the link below and efforts acknowledged. LAN Ethernet Maximum Rates, Generation, Capturing & Monitoring Cisco ASA Oversubscription and Maximizing Throughput Maximizing Firewall Performance (2012 San Diego)

Rename multiple files in subdirectories from uppercase, lower case or mixed case to Proper title case names

I often find large libraries of files specially Music collected from here and there and has names in various forms and specially when all in UPPERCASE it just fills up your player display and becomes annoying. I have written a quick bash script to rename any file names in any level of subdirectories to the Proper title case so anything with "File Name.TXT" or FILE NAME.TXT" or "filE NaME.tXt" will simply be renamed to "File name.txt". Simply copy paste below script in a script file and run the file in Linux bash console. If you are using Windows you can install Cygwin utility to provide you unix type access from your windows system. #!/bin/bash DIR="$1" # failsafe - fall back to current directory [ "$DIR" == "" ] && DIR="." # save and change IFS  OLDIFS=$IFS IFS=$'\n' # read all file name into an array fileArray=($(find $DIR -type f)) # restore it  IFS=$OLDIFS # get length...

بیوی پاکستان گئی ھے

بیوی پاکستان گئی ہے گھر کے کاموں سے گھبرا کر اپنے جاب سے عاجز آ کر چھ ہفتے کی چھٹی پا کر کر کے گھر سنسان گئی ہے بیوی پاکستان گئی ہے سونے کے سیٹ بنوائے گی شان مصالحے بھی لائے گی سوٹ بہت سے سلوائے گی سلک کے لیکر تھان گئی ہے بیوی پاکستان گئی ہے عیش کروں گی اماں کے گھر کام کریں گے نوکر چاکر کار میں لے جائےگا شوفر لے کے یہ ارمان گئی ہے بیوی پاکستان گئی ہے بنوں عاقل میں چاچا ہے چھانگا مانگا میں تایا ہے سب ہی سے مل کر آنا ہے بنا کے سارے پلان گئی ہے بیوی پاکستان گئی ہے بولی رہنا اچھے شوہر دفتر سے سیدھے آنا گھر جاتے جاتے ہاتھ میں دے کر تسبیح اور قرآن گئی ہے بیوی پاکستان گئی ہے طرح طرح کے کھانے پکا کر بھر ڈالا ہے سارا فریزر تاکہ میں نہ کھاؤن باہر کر کے اطمینان گئی ہے بیوی پاکستان گئی ہے اک دن فون کیا اس کے گھر بولے اس کے نانا اصغر وہ تو لے کر سارا ٹبر آج صبح ملتان گئی ہے بیوی پاکستان گئی ہے دھوپ اور گرمی سے آ کر تنگ میلا ہوا جب چہرے کا رنگ اپنی ایک سہیلی کے سنگ وہاں سے وہ کاغان گئی ہے بیوی پاکستان گئی ہے آتی ہے ای میل برابر ایک ہی رٹ ہوتی ہے اکثر بھیجو ڈالر بھیجو ڈالر پھنس مشکل میں جان گ...

How to easily convert all video files in a linux folder

Install FFmpeg video converter on your linux machine. For my Ubuntu distribution I used below two commands to install it. #sudo add-apt-repository 'deb http://ppa.launchpad.net/jon-severinsson/ffmpeg/ubuntu '"$(cat /etc/*-release | grep "DISTRIB_CODENAME=" | cut -d "=" -f2)"' main' && sudo apt-get update #sudo apt-get install ffmpeg Now you can change directory using cd command to your desired video folder which contains all videos in source format. In my example I wanted to convert all of my .MOV videos to .mp4 for better compression and audio recognition by my media server and players. Below command does the magic for the folder, thought it takes some time. for i in *.MOV; do ffmpeg -i $i -strict -2 -vcodec mpeg4 -b:v 1200k -flags +aic+mv4 "${i/.MOV}".mp4; done

Useful website performance and load testing tools

http://tsung.erlang-projects.org/ http://httpd.apache.org/docs/2.0/programs/ab.html http://phantomjs.org/ https://developers.google.com/speed/pagespeed/ http://servermonitoringhq.com/blog/how_to_quickly_stress_test_a_web_server https://code.google.com/p/httperf/ http://loadimpact.com/ http://www.paessler.com/webstress http://loaduiweb.org/ http://en.wikipedia.org/wiki/Web_server_benchmarking http://en.wikipedia.org/wiki/Load_testing http://www.loadui.org/ http://www.loadtestingtool.com/index.shtml http://www.appdynamics.com/blog/devops/load-testing-tools-explained-the-server-side/

UK Take Home Salary Calculator 2014-15

UK Salary or personal income has different Tax and National Insurance bandings with different rates your tax and NI is calculated and deducted from your salary before you get paid through PAYE or will have to pay if you are Self Employed through Self Assessment Returns at the end of year. Below table gives you a quick idea of approximately how much tax and national insurance deduction you would expect as an employee at different levels of income. Lot of retail business pay employees on weekly basis and keep one week wage in hand but large corporates pay wages every month before end of month that you worked in. These figures are calculated as an approximate overview during tax year 2014/15 and may be changed by Inland Revenue in future. A breakdown of calculation can be carried out from The Salary Calculator which was used also in calculating below figures. Basic Annual (£) Tax+NI Deduction (%) Take Home (Year) Take Home (Month) Take Home (Week) ...

Updating ESXi v5.5 for Heartbleed/ OpenSSL vulnerability - VMware virtualisation - esxi550-201404020

Today I got a chance to update my ESXi v5.5 with patch released by VMware so wanted to put quick notes for anyone who may need help in patching their ESXi standalone host for openssl vulnerability. VMWare Advisory lists what is affected with OpenSSL/ Heartbleed vulnerability . 1. Follow the link for ESXi 5.5 / ESXi 5.5 Update 1 from above Advisory page and download relevant patch listed on the table from download site . 2. Connect to your host using SSH (Putty) and check your current ESXi version. # vmware -v This should list VMware ESXi 5.5.0 build-1331820 or similar. # uname -a VMkernel myHOST 5.5.0 #1 SMP Release build-1331820 Sep 18 2013 23:08:31 x86_64 GNU/Linux 3. Transfer your patch downloaded in zip format over to one of the datastores using vSphere client. In my case the patch downloaded form VMware was ESXi550-201404020.zip. 4. Now run below to list patch contents. #esxcli software sources profile list -d=/vmfs/volumes/YOURDATASTORE/ESXi55...