Skip to content

Instantly share code, notes, and snippets.

View stepbester's full-sized avatar

Stephan stepbester

  • Cape Town, South Africa
View GitHub Profile
<TechnicalProfile Id="PolicyProfile">
<DisplayName>PolicyProfile</DisplayName>
<Protocol Name="OpenIdConnect" />
<InputTokenFormat>JWT</InputTokenFormat>
<CryptographicKeys>
<Key Id="client_secret" StorageReferenceId="your-policy-key" />
</CryptographicKeys>
<InputClaims>
<InputClaim ClaimTypeReferenceId="extension_YourClaim" />
</InputClaims>
@stepbester
stepbester / tasks.json
Last active August 28, 2024 23:59
Example user tasks for Free Pascal in VS Code
{
// Based on: https://gist.github.com/pakLebah/dab98067e9a388a3a8d2f5c0b44a7d3f#file-tasks-json
"version": "2.0.0",
"options": {
"cwd": "${workspaceFolder}",
"env": {
// task settings for files and folders, use full path for commands
"FPC_COMMAND": "fpc",
"PROJECTFILE": "${relativeFile}",
"PROJECTBASE": "${fileBasenameNoExtension}",
@stepbester
stepbester / launch.json
Last active June 6, 2021 19:21
A launch.json file for using GDB to debug a Pascal file in VS Code
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug",
"type": "gdb",
"request": "launch",
"target": ".build/debug/${fileBasenameNoExtension}",
"cwd": "${workspaceRoot}",
"valuesFormatting": "parseText",
@stepbester
stepbester / test FixZoneName.sql
Last active August 3, 2021 06:10
SQL Unit Test for FixZoneName
ALTER PROCEDURE [UnitTests].[test FixZoneName]
AS
BEGIN
--Assemble
EXEC tSQLt.FakeTable @TableName = 'sth.GameZone';
INSERT INTO sth.GameZone(Id, ZoneName)
VALUES(1, 'Green Hill');
--Act
@stepbester
stepbester / .runsettings
Created August 23, 2022 09:19
Example .runsettings file containing test run parameters
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<TestRunParameters>
<Parameter name="shipName" value="Enterprise" />
<Parameter name="shipDesignation" value="NCC-1701" />
</TestRunParameters>
</RunSettings>
@stepbester
stepbester / test-warp-core.yml
Last active August 26, 2022 18:54
An example step in Azure Pipelines that passes a test run parameter to the .NET CLI
steps:
- task: DotNetCoreCLI@2
displayName: 'Run warp core tests'
inputs:
command: 'test'
projects: 'Starfleet.WarpCore.Test.csproj'
arguments: '-- TestRunParameters.Parameter(name="\""shipName"\"", value="\""Enterprise"\"")'
@stepbester
stepbester / test-warp-core-pipeline-param.yml
Created August 23, 2022 10:36
An example step in Azure Pipelines that passes a test run parameter to the .NET CLI from a pipeline parameter
parameters:
- name: testShipName
type: string
steps:
- task: DotNetCoreCLI@2
displayName: 'Run warp core tests'
inputs:
command: 'test'
projects: 'Starfleet.WarpCore.Test.csproj'
@stepbester
stepbester / test-warp-core-multiple-params.yml
Created August 23, 2022 12:17
An example step in Azure Pipelines that passes multiple a test run parameters to the .NET CLI
steps:
- task: DotNetCoreCLI@2
displayName: 'Run warp core tests'
inputs:
command: 'test'
projects: 'Starfleet.WarpCore.Test.csproj'
arguments: '-- TestRunParameters.Parameter(name="\""shipName"\"", value="\""Enterprise"\"") TestRunParameters.Parameter(name="\""shipDesignation"\"", value="\""NCC-1701"\"")'