Pages

Monday, May 21, 2018

Install standalone RabbitMQ

Follow the steps to install standalone RabbitMQ distribution:


  • Download from standalone distribution from http://www.rabbitmq.com/download.html
  • Extract it
  • Navigate to /sbin
  • Execute ./rabbitmq-server to start the server in console mode
  • If need to enable management console, install following plugin
    <RabbitMQ_HOME>/sbin/rabbitmq-plugins enable rabbitmq_management

  • Do restart the server
  • Now you can load the management console (http://localhost:15672). But cannot login
  • To login, you need to create a user with following commands (here username is “admin” password is “adminpass”)

    <RabbitMQ_HOME>/sbin/rabbitmqctl add_user admin adminpass

    <RabbitMQ_HOME>/sbin/rabbitmqctl set_user_tags admin administrator

    <RabbitMQ_HOME>/sbin/rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"

  • Now you can login with provided username password

Sunday, April 1, 2018

Tab completion for GIT client application on MAC OS

Most of you have noticed when you install GIT client to MAC OS, it won't workd tab completion by default. It will be more annoying when you moving from Linux to MAC as a new user and highly unefficient. You have to perform few more steps to aquire those comforting option.

For this you need to follow below steps:
  1. Install Homebrew if not already installed.
  2. Install Git and bash-completion: brew install bash-completion
  3. Add bash-completion to your ~/.bash_profile
if [ -f $(brew --prefix)/etc/bash_completion ]; then
  . $(brew --prefix)/etc/bash_completion
fi


If you follow above steps as in [1] most probably it won't work. If it didn't work follow below steps:

Download following files to BREW_PREFIX/etc/bash_completion.d/ directory (Find BREW_PREFIX by brew --prefix command)
 And then add following to the ~/.bash_profile and source it. 

if [ -f $(brew --prefix)/etc/bash_completion ]; then
  . $(brew --prefix)/etc/bash_completion
fi
if [ -f $(brew --prefix)/etc/bash_completion.d/git-completion.bash ]; then
  . $(brew --prefix)/etc/bash_completion.d/git-completion.bash
fi
if [ -f `brew --prefix`/etc/bash_completion.d/git-flow-completion.bash ]; then
  . `brew --prefix`/etc/bash_completion.d/git-flow-completion.bash
fi


[1] https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion  
[2] https://github.com/bobthecow/git-flow-completion/issues/46