Diary

November 8, 2011

To Re/setup network in ubuntu server

Filed under: linux, ubuntu — Himanshu @ 6:02 pm

To Re setup network in ubuntu server, you will need following commands

ifconfig -a #note the NIC you want to setup
sudo vi /etc/network/interfaces #and put following
auto eth1 #in place of eth1 use the NIC you want to setup
iface eth1 inet dhcp #in place of eth1 use the NIC you want to setup.

Save file and start network


ifup eth1

July 5, 2011

InfoQ

Filed under: Uncategorized — Himanshu @ 9:07 am

http://www.infoq.com/

Failed git svn dcommit

Filed under: Uncategorized — Tags: — Himanshu @ 4:55 am
  1. see the log by git reflog and identify the last commit of yours
  2. git reset –hard <id of identified commit>
  3. git svn rebase –all -v
  4. git svn dcommit

July 1, 2011

Statistics about web

Filed under: Uncategorized — Himanshu @ 9:26 am

Interesting statistics about web at http://gs.statcounter.com/#search_engine-ww-monthly-201002-201102

December 8, 2010

Git, undo ALL local changes

Filed under: git — Tags: — Himanshu @ 1:15 pm

git checkout -f

December 3, 2010

Remove directory tree in linux

Filed under: linux — Himanshu @ 5:02 am

*** Warning: This will not confirm if you want to really remove it or not! ***

rm -rf dir_name

Expand tar.gz in linux

Filed under: linux — Himanshu @ 5:00 am

tar zxvf file.tar.gz

May 20, 2010

Windows authentication and run as

Filed under: Uncategorized — Himanshu @ 5:58 am

We have multiple DCs in our organization for a reason, and we need to access SQL Server hosted on different DC several times. To login into SQL Server using windows authentication I use following:

C:\Windows\System32\runas.exe /netonly /user:<different domain name>\<username of different domain name”> "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe"

February 24, 2010

Cisco VPN throwing error as “Failed to enable Virtual Adapter”

Filed under: Uncategorized — Himanshu @ 10:50 am

In Windows 7, I have see this error many times when trying to connect using Cisco VPN Software.

failed to enable virtual adapter

I could resolve the issue by

  1. Enable Cisco Network adapter
  2. Diagnose the adapter by option given in context menu
  3. Disable adapter
  4. Try connecting to the network again

Update: If above do not solve the problem and surprisingly it wouldn’t sometime! Restart the machine.

January 8, 2010

Linux, setting system wide variable

Filed under: Uncategorized — Himanshu @ 12:11 pm
 
my-box:~$ sudo su -
Password:
root:~# cat >> /etc/profile
JAVA_HOME=/usr/lib/jvm/java-6-sun
export JAVA_HOME
root:~# 
Older Posts »

Powered by WordPress