Posts

Showing posts from 2013

Getting local socket address, foreign address and the owning process on Linux and Windows

I was searching for ways to get details of local address, foreign address, and the owning process on Linux and Windows. I found multiple commands to achieve the same. Here are the ones I used: On Linux: # ss -atpn | awk '(NR > 1) { print $4, $5, $NF }' This would list all TCP sockets and the owning process. You can redirect the same to a file in case if needed. I used "netstat" on Windows to achieve the same. for /f "tokens=2,3,5" %i in ('netstat -ano ^| findstr /v "Active Proto"') do @echo %i %j %k A sample listing is: ... 192.168.43.94:139 0.0.0.0:0 4 192.168.43.94:1093 74.125.135.125:5222 5172 192.168.43.94:1130 15.201.58.50:443 5876 192.168.43.94:1131 15.201.58.50:443 5876 192.168.43.94:1136 15.201.58.50:443 5876 192.168.43.94:1143 15.201.58.50:443 5876 192.168.43.94:1217 15.201.58.50:443 5876 192.168.43.94:1219 15.201.58.50:443 5876 192.168.43.94:1433 15.201.58.50:443 5876 ... If you want to redirect them

How to find out the version of cygwin

Run the command "uname -r" to get the version. For e.g.: > uname -r 1.7.25(0.270/5/3) To get complete details, run: "cygcheck --version" For e.g.: >cygcheck --version cygcheck (cygwin) 1.7.25 System Checker for Cygwin Copyright (C) 1998 - 2013 Red Hat, Inc. This is free software; see the source for copying conditions.  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Mounting a ISO image on different Unix platforms

1. Mounting ISO images in AIX 6 and 7 # loopmount -i -o "-V cdrfs -o ro" -m e.g.: # loopmount -i cdrom.iso -o "-V cdrfs -o ro" -m /mnt/disk 2. On Linux: #mount -o loop e.g.: #mount -o loop cdrom.iso /mnt/disk 3. On Solaris: mount -F hsfs -o ro `lofiadm -a ` e.g: mount -F hsfs -o ro `lofiadm -a /path/to/image.iso` /mnt 4. To unmount: umount

Interested in a free recharge?

Amulyam is a very nice website that provides you an option to get free mobile recharge. It supports free mobile recharge for both, prepaid and postpaid mobile subscribers on all Indian telecom operators ( Airtel, Aircel, Vodafone, Reliance, BSNL, Loop, MTS, Tata Indicom, Docomo, Aircel, Uninor, Idea, Virgin Mobile). I have utilized it for recharging BSNL prepaid mobile phone. Get more details about Amulyam here

How to set build verbosity in Visual Studio 2010 IDE?

All you need to do is to go into the Tools->Options menu, and go to Projects and Solutions->Build and Run and change the value of the MSBuild project build output verbosity.  You can pick between Quiet, Minimal, Normal, Detailed and Diagnostic .

Changing product key after Installing Windows 8

At the administrator command prompt, type in "slmgr.vbs -ipk " slmgr.vbs -ipk 00000-00000-00000-00000-00000 To activate windows after changing the key, run "slmgr.vbs -ato" More details in the following link: http://tweaks.com/windows/39026/change-windows-product-key-after-install/