## Export procedure for my VM

vagrant box package --output mymachine.box

Make sure Vagrant >=1.9.2 is installed on target host (see here for why). Copy the Vagrantfile from the original host but change appropriate line so it says (important!!) config.vm.box = "dev". Then vagrant box add mymachine.box --name dev. Then vagrant up dev and vagrant ssh dev (don't worry about network interface errors). In the guest machine sudo yum install NetworkManager (should solve some of the network errors, note that the /vagrant folder may not be mounted at this point due to network errors).

If Vagrant is looking for a non-existent network interface, e.g. eth1 just get rid of the corresponding configuration file. sudo rm /etc/sysconfig/network-scripts/ifcfg-eth1. Restart the machine and the /vagrant folder should be mounted.

## Change file name color in grep results

The default magenta/purple color that colors filename output in grep is almost invisible on a black background. To change it to a more visible (but not very attractive) mustard color: export GREP_COLORS="fn=33"

## Weird jBrowser initialization issue

I was running a series of unit tests using jBrowser and getting errors like org.openqa.selenium.WebDriverException: java.lang.IllegalStateException: Could not launch browser. and various others such as JNI errors and NoClassDefFound for CookieStore. Very perplexing. In the end it was just a memory issue. I'd forgotten to close each instance of jBrowser when the test exited.

Jon Yom-Tov