Category Archives: Tips and tricks

Tips and tricks

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: The good way to configure the proxy for git is by … Continue 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 , , , , , , , , , | 3 Comments

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 , , , | 14 Comments

How to “OSGIfy” an Oracle jdbc driver with Spring Roo

If you want to use Spring Roo to reverse engineer an existing Oracle database, you need to bundle the Oracle driver in an OSGI format (this is not required if you want to use Spring Roo with Oracle in a … Continue reading

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

Windows: find the location of the executables

After having answered this question for Linux/Unix, I have encountered the same need for Windows. This is what I have found. Since Windows Server 2003 (including Vista and Windows 7), you can use the “where” command. Before Windows Server 2003 … Continue reading

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

Linux: find the location of the executables

How to locate the binary, source and/or man page files for a command? $ whereis command ‘whereis’ has some options you can specify in order to limit the places to look at, or the type of files (binary, source, man … Continue reading

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