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
# PowerShell code to run in PowerShell 7 console | |
$url="https://superusers-kursus-2020.westeurope-1.eventgrid.azure.net/api/events" | |
$secret="RDvN3YqgGBqjYPuj7MuwhWYuRIvnds+UV0yMI15pRVw=" | |
[Environment]::SetEnvironmentVariable("event-grid-url", $url , 'User') | |
[Environment]::SetEnvironmentVariable("event-grid-key", $secret, 'User') | |
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
import { json, urlencoded } from "body-parser"; | |
import * as compression from "compression"; | |
import * as express from "express"; | |
import * as path from "path"; | |
import { publicRouter } from "./routes/public"; | |
import { landingPage} from "./routes/index"; | |
import { aboutRouter } from "./routes/about" ; | |
const app: express.Application = express(); |
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
# Editor configuration, see http://editorconfig.org | |
root = true | |
[*] | |
charset = utf-8 | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
insert_final_newline = true | |
trim_trailing_whitespace = true |
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
# See http://help.github.com/ignore-files/ for more about ignoring files. | |
# compiled output | |
/dist | |
/tmp | |
/build | |
# dependencies | |
/node_modules | |
/bower_components |
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
Show hidden characters
{ | |
"rulesDirectory": [ | |
"node_modules/codelyzer" | |
], | |
"rules": { | |
"callable-types": true, | |
"class-name": true, | |
"comment-format": [ | |
true, | |
"check-space" |
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
{ | |
"compileOnSave": false, | |
"compilerOptions": { | |
"outDir": "./dist/out-tsc", | |
"sourceMap": true, | |
"declaration": false, | |
"moduleResolution": "node", | |
"emitDecoratorMetadata": true, | |
"experimentalDecorators": true, | |
"lib": [ |
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
{ | |
"verbose": false, | |
"ignore": [ | |
".git", | |
"node_modules/**/node_modules" | |
], | |
"execMap": { | |
"js": "node" | |
}, | |
"watch": [ |
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
{ | |
"name": "angular2-express-starter", | |
"version": "1.0.0", | |
"description": "Starter application of Angular2 with Express", | |
"main": "server/app.js", | |
"license": "MIT", | |
"scripts": { | |
"start": " tsc -p ./server && concurrently \"tsc -w -p ./server\" \"nodemon dist/server/bin/www.js\" " | |
}, |
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
Clear-Host | |
Write-Host "0 -> Change setting in Windows Update app (default)" | |
Write-Host "1 -> Never check for updates (not recommended)" | |
Write-Host "2 -> Notify for download and notify for install" | |
Write-Host "3 -> Auto download and notify for install" | |
Write-Host "4 -> Auto download and schedule the install" | |
Write-Host "Enter any character to exit" | |
Write-Host |
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
worker_processes 4; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
default_type application/octet-stream; | |
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | |
'$status $body_bytes_sent "$http_referer" ' |
NewerOlder