$ git clone [email protected]:berkeley-food-recommendations/data-gathering.git
You're cloning the main repository - be careful! We're going to enforce a "no committing to master directly" rule, so no committing directly to master, please.
| Install WireGuard via whatever package manager you use. For me, I use apt. | |
| $ sudo add-apt-repository ppa:wireguard/wireguard | |
| $ sudo apt-get update | |
| $ sudo apt-get install wireguard | |
| MacOS | |
| $ brew install wireguard-tools | |
| Generate key your key pairs. The key pairs are just that, key pairs. They can be |
| # Dockerfile extending the generic Node image with application files for a | |
| # single application. | |
| FROM gcr.io/google_appengine/nodejs | |
| ARG COMMIT=local | |
| ARG TAG=local | |
| # Check to see if the the version included in the base runtime satisfies | |
| # '>=10.14', if not then do an npm install of the latest available | |
| # version that satisfies it. | |
| RUN /usr/local/bin/install_node '>=10.14' | |
| COPY . /app/ |
| const crypto = require("crypto") | |
| // The `generateKeyPairSync` method accepts two arguments: | |
| // 1. The type ok keys we want, which in this case is "rsa" | |
| // 2. An object with the properties of the key | |
| const { publicKey, privateKey } = crypto.generateKeyPairSync("rsa", { | |
| // The standard secure default length for RSA keys is 2048 bits | |
| modulusLength: 2048, | |
| }) |
| 3.1382101877534776,101.61040842533112 | |
| 3.157966984110212,101.71162962913513 | |
| 2.939312193275677,101.69245719909668 | |
| 2.75307512553801,101.70644760131836 |
| Centrepoint | |
| Petronas Twin Tower | |
| Jabatan Perdana Menteri | |
| KLIA |