- Install
osxfuse:
brew cask install osxfuse-
Reboot your Mac.
-
Install
ntfs-3g:
| server { | |
| listen 80; | |
| listen [::]:80; | |
| index index.html index.htm index.nginx-debian.html; | |
| server_name domain-name.com; | |
| root /var/www/project-name/build; |
| server { | |
| listen 80; | |
| root /var/www/html; | |
| index index.php index.html index.htm index.nginx-debian.html; | |
| server_name example.com; | |
| location / { | |
| try_files $uri $uri/ =404; | |
| } |
| const crypto = require('crypto') | |
| const fs = require('fs') | |
| const private_key = fs.readFileSync('certs/private.pem', 'utf-8') | |
| const public_key = fs.readFileSync('certs/public.pem', 'utf-8') | |
| const message = fs.readFileSync('message.txt', 'utf-8') | |
| const signer = crypto.createSign('sha256'); | |
| signer.update(message); | |
| signer.end(); |
| # Alias to easy navigation on a linux server | |
| # nginx | |
| alias to-nginx="cd /etc/nginx" | |
| alias to-nginx-available="cd /etc/nginx/sites-available" | |
| alias to-nginx-enabled="cd /etc/nginx/sites-enabled" | |
| # Hosted apps | |
| alias to-www="cd /var/www" |
| [default] | |
| access_key = # Digital Ocean access key | |
| access_token = | |
| add_encoding_exts = | |
| add_headers = | |
| bucket_location = fra1 | |
| ca_certs_file = | |
| cache_file = | |
| check_ssl_certificate = True | |
| check_ssl_hostname = True |
| { | |
| "presets": ["es2015"], | |
| "plugins": [ | |
| "add-module-exports" | |
| ], | |
| } |
| version: 2 | |
| workflows: | |
| version: 2 | |
| build: | |
| jobs: | |
| - test | |
| jobs: | |
| test: |
osxfuse:brew cask install osxfuseReboot your Mac.
Install ntfs-3g:
I was trying to solve an issue with starting the ExpressJS server before each single test and closing it after each test completes, just to make sure each test is running under the same conditions.
Here is the error I ran into while trying to run the tests
$ ./node_modules/jasmine/bin/jasmine.js
Started
started
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com, example2.com, and example1.com/images on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers