Set up project:
mkdir project
cd project
npm init -y
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2261536/hack.sh | sh | |
# |
sudo apt-get update -y
sudo apt-get install build-essential libssl-dev -y
curl -sL https://deb.nodesource.com/setup_9.x| bash -
apt-get install -y nodejs
curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh -o install_nvm.sh
bash install_nvm.sh
source ~/.profile
nvm install 9.4.0
nvm use 9.4.0
#!/usr/bin/env bash | |
# Map Caps Lock key to Left Control key | |
# https://developer.apple.com/library/content/technotes/tn2450/_index.html | |
# This doesnt work. Reverts on restart | |
# hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x7000000E0}]}' | |
# References: | |
# https://github.com/mathiasbynens/dotfiles/issues/310 | |
# https://gist.github.com/scottstanfield/0f8ce63271bebfb5cf2bb91e72c71f91 | |
# The last link didnt work for me on Sierra or High Sierra. I could not find IOHIDKeyboard but |