Tuesday, June 13, 2017

Python Threads (lifesaver!)

https://pymotw.com/2/threading/

Monday, June 5, 2017

Gitlab server

This gave me some pain! How to set up gitlab server for my team and then be able to use just the IP address and not the DNS name. I had to use the IP address since the network admin policy was that unless a static ethernet cable-based IP address was allotted to my desk they would not be able to provide me DNS name. So until then I decided to use Virtual Box with Bridged-adapter network configuration and then use the IP address that the network switch would allocate to my virtual machine as though it were a separate node in the network to run my gitlab server on.

There was one little thing that took 2 days to figure out.
Where do you set up the IP address for gitlab server?

Add this following line to the file gitlab.rb:

sudo vim /etc/gitlab/gitlab.rb
external_url 'http://xxx.xxx.xxx.xxx'


VirtualBox VMDK from VMWare


Copy paste the following into a shell script and run:
[Reference: https://github.com/caskroom/homebrew-cask/issues/3333]

Quite useful tips!
http://brianflove.com/2014/06/09/vmware-fusion-to-virtual-box/

(
  cd /tmp;
  vbox_full_version=$(brew cask info virtualbox | head -1 | cut -d' ' -f2);
  vbox_short_version=${vbox_full_version/-*};
  curl -L -O http://download.virtualbox.org/virtualbox/${vbox_short_version}/Oracle_VM_VirtualBox_Extension_Pack-${vbox_full_version}.vbox-extpack;
  sudo VBoxManage extpack install --replace Oracle_VM_VirtualBox_Extension_Pack-${vbox_full_version}.vbox-extpack;
  rm *.vbox-extpack;
)