Skip to content

Instantly share code, notes, and snippets.

View robertcoltheart's full-sized avatar

Robert Coltheart robertcoltheart

View GitHub Profile
@robertcoltheart
robertcoltheart / confluent-single-schema.yml
Last active April 10, 2024 05:16
confluent-single-schema.yml
version: '3'
services:
broker:
image: confluentinc/cp-kafka
hostname: broker
container_name: broker
ports:
- "9092:9092"
- "9101:9101"
version: '3'
services:
zoo1:
image: confluentinc/cp-zookeeper:7.3.2
hostname: zoo1
container_name: zoo1
ports:
- "2181:2181"
environment:
version: '3'
services:
zoo1:
image: confluentinc/cp-zookeeper:7.3.2
hostname: zoo1
container_name: zoo1
ports:
- "2181:2181"
environment:
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 \
@robertcoltheart
robertcoltheart / atlassian.yml
Created January 28, 2023 11:20
Atlassian docker compose
version: '3.7'
services:
bitbucket:
image: atlassian/bitbucket-server
hostname: bitbucket
expose:
- 7990
- 7999
ports:
@robertcoltheart
robertcoltheart / json.md
Last active December 11, 2024 13:09
Json parser in < 100 lines
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),
@robertcoltheart
robertcoltheart / prefab.cmd
Last active February 15, 2021 08:06
A script for creating a basic .Net project folder structure.
@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)
@robertcoltheart
robertcoltheart / dotnetstructure.md
Last active November 8, 2019 15:22
Default project structure for a .NET project
$/
  artifacts/
  build/
    - {solution.nuspec}
  docs/
  lib/
  scripts/
  src/
 - SharedAssemblyInfo.cs