Skip to content

Instantly share code, notes, and snippets.

@theit8514
theit8514 / serilog-configuration-schema.json
Last active November 13, 2018 21:29 — forked from turchenkoalex/serilog-configuration-schema.json
serilog-configuration-schema.json
{
"properties": {
"Serilog": {
"title": "JSON schema for Serilog.Settings.Configuration",
"$schema": "http://json-schema.org/draft-04/schema",
"type": "object",
"description": "Serilog configuration",
"definitions": {
"libraries": {
"type": "array",
@theit8514
theit8514 / powershell-web-server.ps1
Last active May 27, 2020 09:47 — forked from 19WAS85/powershell-web-server.ps1
A simple web server built with powershell.
param(
[int]$Port = 8080
);
$routes = @{
"/ola" = { return '<html><body>Hello world!</body></html>' }
}
$url = "http://localhost:$Port/"
$listener = New-Object System.Net.HttpListener
$listener.Prefixes.Add($url)