osx mount external drive in rw
sudo mount -u -o rw /Volumes/Untitled
osx mount external drive in rw
sudo mount -u -o rw /Volumes/Untitled
Prepend timestamp to command
command | ts '[%Y-%m-%d %H:%M:%S]'
RUN echo 'workaround:\n\
heredoc: in dockerfile\n\
just another level of yml:\n\
something: else\n\
>> some_output.yml
calling other targets with parameters in Makefile
build:
docker-compose build
stop:
docker-compose stop ${service}
remove:
yes | docker-compose rm ${service}
The aim of this is to setup vim for golang development on my mac. Things that we are looking for is:
Make sure I have xcode commandline installed so that I can install the latest vim using brew in the next step without getting some sort of ruby error
xcode-select --install
Need to get latest vim with lua support
Assuming that you are behind a cooperate proxy and running cntlm or squid to proxy all your outgoing traffic to the interweb.
When using docker for Mac, becuase docker for mac provision a xhyve VM under the hood, so having set the docker preference proxy setting to http[s]://localhost:3128 is not going to help as localhost == xhyve VM not the Mac.
Logging into the xhyve VM
list and upgrade pip modules
pip list --outdated | cut -d' ' -f1 | xargs pip install -U
command for upload firmware to atreus and the most important is to remeber the usb device identifier
make upload KEYMAP=mykeymapfile USB=/dev/cu.usbmodem1421
When setting up golang in babun or cygwin, make sure we set the following
export GOROOT=<<root to your go installtion. e.g. "c:\tools\go">>>
export GOPATH=<<full path to working dir in qoute, cant use linux style path e.g. "c:\workspace\">>
When running container in container with arbitrary user id but you want a proper uid to perform task like git pull or any runnable container task.
User nss_wrapper
in Dockerfile
yum install nss_wrapper
.....
command ["./startup.sh"]