Open terminal in the script dir
-
sudo apt install wget curl lzip tar unzip squashfs-tools
-
chmod +x install-playstore.sh
-
./install-playstore.sh
#!/bin/bash | |
# | |
# Script: vmtools-4-arch-and-co.sh | |
# Date: july 31, 2013 | |
# Release: v1 - multi arch distros | |
# Author: Fnux | |
# e-mail: [email protected] | |
# Licence: CC-By-Sa | |
# | |
# Credit: WoodyZ from communities.vmware.com for his help. |
Steps to deploy a Node.js app to Digital Ocean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
While attempting to explain JavaScript's reduce
method on arrays, conceptually, I came up with the following - hopefully it's helpful; happy to tweak it if anyone has suggestions.
JavaScript Arrays have lots of built in methods on their prototype. Some of them mutate - ie, they change the underlying array in-place. Luckily, most of them do not - they instead return an entirely distinct array. Since arrays are conceptually a contiguous list of items, it helps code clarity and maintainability a lot to be able to operate on them in a "functional" way. (I'll also insist on referring to an array as a "list" - although in some languages, List
is a native data type, in JS and this post, I'm referring to the concept. Everywhere I use the word "list" you can assume I'm talking about a JS Array) This means, to perform a single operation on the list as a whole ("atomically"), and to return a new list - thus making it much simpler to think about both the old list and the new one, what they contain, and
sudo apt update && sudo apt upgrade
Optional Online accounts and setups: