Skip to content

Instantly share code, notes, and snippets.

View krishofmans's full-sized avatar

Kris krishofmans

View GitHub Profile
@krishofmans
krishofmans / back-to-the-future.kt
Created May 24, 2025 08:22
My solution so far for the inventory kata
package io.tripled.backtothefuture
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.shouldBe
import java.time.LocalDateTime
import java.time.temporal.ChronoUnit
class InventoryKata : FunSpec( {
val today = LocalDateTime.now()
@krishofmans
krishofmans / README.md
Created May 24, 2025 08:21 — forked from DanielRamosAcosta/README.md
Back to the Future Kata

Back to the Future Kata

Complete name: Back to the Future in the Grocery Store Kata

This kata is about managing a special grocery store inventory. The task is to keep track of fruits and vegetables, organize and sort them, but with a twist—we need to manage the inventory over time!

Every method in this kata requires a date parameter to indicate when the changes should take effect.

Your job is to create a system that can accept changes to the inventory at any date, and then allow us to see the state of the inventory at any given date.

@krishofmans
krishofmans / Docker-multistage-example.MD
Last active November 25, 2019 21:41 — forked from liemle3893/Docker-multistage-example.MD
Docker Multistage + Spring Boot = Smaller Container Sized

docker-multi-stage

Spring Boot + Docker Multistage = Smaller container size

Use can use prebuild version by using:

$ docker run -d -p 8080:8080 saboteurkid/smaller-spring:1.0

Wait for docker to pull and up. Then jump to step #6

1. Clone example project from Spring Boot repository

import org.apache.activemq.command.ActiveMQTextMessage
import org.springframework.context.event.EventListener
import org.springframework.http.HttpStatus
import org.springframework.http.ResponseEntity
import org.springframework.jms.core.JmsTemplate
import org.springframework.jms.core.MessageCreator
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PostMapping
import javax.jms.Queue
import javax.jms.TextMessage
@krishofmans
krishofmans / monitoring setup.md
Last active February 16, 2017 20:31
Setup basic grafana/influxdb/telegraf environment to play with

Create a software defined network that we will use to let the containers communicate with eachother

docker network create statnet --attachable

Create a volume container for grafana's configuration + grafana instance

docker run -d -v /var/lib/grafana --name grafana-storage busybox:latest

docker create \