This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const util = require('util') | |
const obj = { | |
"city": "De Pere", | |
"foo.hoo": "loo", | |
"foo.bar.name": "mark", | |
"foo.bar.age": 10, | |
"foo.bar.color": "larry", | |
"foo.bar.house.number": 523, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## user user; ## <- delete this line | |
worker_processes 1; | |
error_log /var/log/error.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Logs | |
logs | |
*.log | |
npm-debug.log* | |
yarn-debug.log* | |
yarn-error.log* | |
lerna-debug.log* | |
# Diagnostic reports (https://nodejs.org/api/report.html) | |
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map $http_upgrade $connection_upgrade { | |
default upgrade; | |
'' close; | |
} | |
upstream {{name}} { | |
server {{name}}; | |
} | |
upstream websocket { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
nginx: | |
image: nginx:latest | |
volumes: | |
- ./default.conf:/etc/nginx/conf.d/default.conf:ro | |
ports: | |
- 80:80 | |
{{name}}: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PATH=./node_modules/.bin:$PATH | |
function dockup { | |
temp=${temp:-tmp} | |
builder="node.docker-compose.builder.tpl.yml" | |
compose="node.docker-compose.tpl.yml" | |
builderOut="docker-compose.builder.yml" | |
composeOut="docker-compose.yml" | |
image=${image:-node:12.16.2} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
base: | |
image: {{image}} | |
volumes: | |
- .:{{dir}} | |
- {{volume}}:{{dir}}/node_modules | |
working_dir: {{dir}} | |
init: | |
extends: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<app> | |
<h1>Hello</h1> | |
<router> | |
<ul> | |
<li> | |
<a href="/child">Child</a> | |
</li> | |
</ul> | |
<child something={ doSomething }></child> | |
</router> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<app> | |
<h1>Hello</h1> | |
<router> | |
<ul> | |
<li> | |
<a href="/child">Child</a> | |
</li> | |
</ul> | |
<route path="/child"> | |
<child something={ doSomething }></child> |