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
| syntax on " Erlaubt Syntax-Highlighting. | |
| set tabstop=4 " Tabs entsprechen 4 Leerzeichen. | |
| set shiftwidth=4 " Einrückungen mit Shift entsprechen 4 Leerzeichen. | |
| set expandtab " Alle Tabs werden durch Leerzeichen ersetzt. | |
| set autoindent " Automatische Einrückungen. | |
| set incsearch " Inkrementelle Suche |
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
| FROM mcr.microsoft.com/dotnet/core/sdk:3.0 as build-env | |
| WORKDIR /app | |
| RUN dotnet new -i identityserver4.templates | |
| RUN dotnet new is4admin | |
| RUN dotnet restore | |
| RUN dotnet publish -c Release -o out | |
| FROM mcr.microsoft.com/dotnet/core/aspnet:3.0 | |
| WORKDIR /app |
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
| using Microsoft.AspNetCore; | |
| using Microsoft.AspNetCore.Hosting; | |
| using Microsoft.Extensions.Configuration; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using Microsoft.Extensions.Logging; | |
| using NLog.Web; | |
| using System; | |
| namespace MyApp | |
| { |
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
| namespace SampleProject | |
| { | |
| public class Startup | |
| { | |
| // This method gets called by the runtime. Use this method to add services to the container. | |
| public void ConfigureServices(IServiceCollection services) | |
| { | |
| services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1); | |
| } |
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 isIE = navigator.userAgent.indexOf('Trident/') > -1 || navigator.userAgent.indexOf('Edge/') > -1; | |
| if (isIE) { | |
| document.body.classList.add('internetExplorer'); | |
| } | |
| const isEdge = navigator.userAgent.indexOf('Edge') > -1; | |
| if (isEdge) { | |
| document.body.classList.add('edge'); | |
| } |
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
| <# | |
| .SYNOPSIS | |
| Get an access token from an OpenID Connect Provider using the passwort grant type | |
| or the client credentials grant type (without user context). | |
| First, you need an client id and client secret. | |
| The Password Grant Type enables the OpenID Connect client to send a username and password directly | |
| to the OpenID Authority to obtain an access token for the user without user interaction. |
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
| <# | |
| .SYNOPSIS | |
| Get a random GUID as string. | |
| .PARAMETER short | |
| Print the GUID without hyphens. | |
| .PARAMETER uppercase | |
| Transform the GUID to uppercase letters. | |
| #> |
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
| Workflow Tail | |
| { | |
| Param([string[]] $files) | |
| foreach -parallel ($file in $files) | |
| { | |
| Get-Content -Path $file -Tail 1 -Wait | |
| } | |
| } |
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 | |
| # This script allows you to backup a single volume from a container | |
| # Data in given volume is saved in the current directory in a tar archive. | |
| VOLUME_NAME=$1 | |
| BACKUP_PATH=$2 | |
| usage() { | |
| echo "Usage: $0 [volume name] [backup path]" | |
| exit 1 | |
| } |
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
| using Microsoft.AspNetCore.Authentication; | |
| using Microsoft.AspNetCore.Builder; | |
| using Microsoft.AspNetCore.Hosting; | |
| using Microsoft.AspNetCore.Http; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using System.IdentityModel.Tokens.Jwt; | |
| namespace AspNetCoreAuthTest | |
| { | |
| public class Startup |