public class JsonParser
{
public object Parse(string value)
{
return value.Trim() switch
{
{Length: 0} => null,
var json when json[0] == '{' && json[^1] == '}' => JsonObject(json),
var json when json[0] == '[' && json[^1] == ']' => JsonArray(json),
This file contains 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' | |
services: | |
broker: | |
image: confluentinc/cp-kafka | |
hostname: broker | |
container_name: broker | |
ports: | |
- "9092:9092" | |
- "9101:9101" |
This file contains 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' | |
services: | |
zoo1: | |
image: confluentinc/cp-zookeeper:7.3.2 | |
hostname: zoo1 | |
container_name: zoo1 | |
ports: | |
- "2181:2181" | |
environment: |
This file contains 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' | |
services: | |
zoo1: | |
image: confluentinc/cp-zookeeper:7.3.2 | |
hostname: zoo1 | |
container_name: zoo1 | |
ports: | |
- "2181:2181" | |
environment: |
This file contains 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
docker network create \ | |
--driver bridge \ | |
--subnet=192.168.16.0/20 \ | |
atlassianNetwork | |
docker volume create --name bambooVolume | |
docker run -d -p 8085:8085 -v bambooVolume:/var/atlassian/application-data/bamboo \ | |
--name bamboo \ | |
--network atlassianNetwork \ |
This file contains 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: | |
bitbucket: | |
image: atlassian/bitbucket-server | |
hostname: bitbucket | |
expose: | |
- 7990 | |
- 7999 | |
ports: |
This file contains 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
@echo off | |
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
:: Prefab | |
:: | |
:: This script creates basic scaffolding for a default .Net project. It includes | |
:: default folders, build scripts, solution files and documentation. The project | |
:: can then be further tailored to reflect the type of project that is needed. | |
:: | |
:: The default project setup leverages the following third-party integrations: | |
:: - Cake (http://cakebuild.net) |
$/
artifacts/
build/
- {solution.nuspec}
docs/
lib/
scripts/
src/
- SharedAssemblyInfo.cs