Thursday, February 23, 2017

Run tests in background with golang

With the new "gogland" IDE there is no support(yet) for running tests on each save.

However, if you run ubuntu, you could use the following script to continously run the tests in the background and get notified when you a) break the tests b) fix the tests.

download the script:
wget https://gist.githubusercontent.com/nilsmagnus/8d5a431f19760ddcaa5d8c12d22b13f9/raw/c16fba1f9be83c395a3e4e493c72df8c715fe896/continous_gotest_notify.sh 
execute the script:
sh continous_gotest_notify.sh

Wednesday, January 25, 2017

Install ubuntu on lenovo yoga 900


Setting up lenovo yoga 900 with ubuntu is not straight forward. 

Get into bios by pressing the tiny circular button on the right side of the laptop with a toothpick when the computer is off.
  1. Enable back update in bios
  2. Boot to windows, dowload linux-specific bios update from lenovo, install it and follow instructions.
  3. Change configuration in bios under "configuration" from RAID to ACHI.
  4. Boot from your ubuntu usb-stick, pressing fn-f12 during restart.  
Happy linuxing.