Sunday, March 18, 2012

Kill a process on a specific port

Here is how you easily can kill processes running on a particular port on Linux:

lsof -ti :8080 | xargs kill -9

This is useful when for some reason your server has stopped working properly.

Thursday, March 15, 2012

Git default editor

Sometimes when installing a new distro and Git, the editor may not be correctly configured.

Therefore, you may want to run the following command to update it:
git config core.editor 'vim'

Wednesday, March 7, 2012

Simple JMS Queue Example

I have two example "applications" communicating using JMS.


The two projects are well documented. Have a look at the READMEs in both projects for details.

Sunday, March 4, 2012

Spotify Fedora Errors

Chances are that bugs may occur when using Spotify on Fedora.

112, 114 and 117 are all error codes.

Here is what you should do:
  1. Log out of Spotify
  2. Delete .config/spotify/ and .cache/spotify/ (usually located in the user's home folder).
  3. Log in to Spotify