Author Archives: nidget

About nidget

Technology enthousiast, Java and JEE expert, IT architect.

A Git startup cheat sheet

A compilation of useful Git commands when starting with a fresh install.   Set user info: git config –global user.name “John Doe” git config –global user.email johndoe@example.com Set the proxy: git config –global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080 git config –global https.proxy http://proxyuser:proxypwd@proxy.server.com:8080Continue reading

Posted in Tips and tricks | Tagged , | 2 Comments

How to install Docker in Ubuntu 14.04 and up

Installing Docker in Ubuntu 14.04 and above is fairly easy. It just requires one line: sudo apt-get install docker.io Optionally, you may also want to use the docker command rather than docker.io: sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker To get an … Continue reading

Posted in Tips and tricks | Tagged , | Leave a comment

Add a new virtual volume to an LVM partition of a virtual VMWare system running a RedHat type Operating System

    Add a new drive to your virtual machine using the graphical VMware tool, currently VMware vSphere Reboot the virtual machine so the new drive can be seen by the host Operating System Launch the command vgdisplay as root … Continue reading

Posted in Tips and tricks | Tagged , , , | Leave a comment

Linux: find the dependent packages

Sometimes, you would like to update a package, but you are not sure what other packages depend on it.   If you are on Fedora, Redhat or CentOS, this simple command will definitely help you: repoquery –whatrequires –installed –recursive packagename … Continue reading

Posted in Tips and tricks | Tagged , , , , | Leave a comment

Modify the default character encoding for the Vim text editor

By default, Vim tries to detect the character encoding of a file when it is edited and it will use that encoding when saving the file. In case of UTF-8 files, Vim will search for a BOM at the beginning … Continue reading

Posted in Tips and tricks | Tagged , , , , | Leave a comment

Create registry file (.reg) equivalent to the RegSvr32 command

If you have already programmed a bit in OLE/ActiveX/Shell extensions/etc. in the Microsoft world, you already know the RegSvr32 command used to register/unregister these dll components. The regsvr32.exe command only calls the DllRegisterServer entry point, i.e. a method with that … Continue reading

Posted in Tips and tricks | Tagged , , , , , , , , , | 1 Comment

Workaround the Grub installation issue in Debian Wheezy

The current testing version of Debian, aka Wheezy, contains a rather annoying bug that prevents the installation of Grub, the multi-OS bootstrapper of Linux. Although this bug will be corrected at some point in the possibly near future, it is … Continue reading

Posted in Tips and tricks | Tagged , , , | 11 Comments