Install homebrew/services, this will be helpful, you'll see later. :D
$ brew tap homebrew/services
Parts taken from:
https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-16-04
https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-16-04
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04
https://www.digitalocean.com/community/tutorials/ufw-essentials-common-firewall-rules-and-commands
Create droplet in DigitalOcean dashboard
(do not add SSH key during setup)
local:
const shuffleArray = arr => arr.sort(() => Math.random() - 0.5) | |
shuffleArray([1, 2, 3]) //[3, 1, 2] |