Friday, May 27, 2016

Update all Ruby Gems on your Mac

Usually I used the command I found here which is

sudo gem update `gem list | cut -d ' ' -f 1`

However sometimes, if you are on a VM that hasn't set the profile correctly you'll need to specify the right directory. So the effective command working everywhere (so far) is.

sudo gem update -n /usr/local/bin `gem list | cut -d ' ' -f 1`

Golang setup PATH

Quite recently we startet in the company to use and write some Go programs. I love Go. It's easy to learn, read and modify. One of the m...