Skip to content

Instantly share code, notes, and snippets.

View max-weis's full-sized avatar
🐳
Just Chillin

Max Weis max-weis

🐳
Just Chillin
View GitHub Profile
@max-weis
max-weis / index.html
Created January 25, 2022 08:03
AsyncAPI Webcomponents Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<!-- Remove 'webcomponentsjs' if no support for older browsers is required -->
<script src="https://unpkg.com/@webcomponents/[email protected]/webcomponents-bundle.js"></script>
\begin{table}
\begin{tabular}{l*{4}{c}r}
Faktor & Symbol & Level & Werte \\
\hline
Anzahl der Jobs & $n$ & 6 & 5,7,9,11,13,15 \\
Anzahl der Produktionsschritte & $m$ & 2 & 2,3 \\
Anzahl der paralellen Maschinen pro Produktionsschritt & $m_i$ & 2 & 1,3 \\
Distribution of the release dates for the machines & $rm_{il}$ & 1 & $U[1,200]$ \\
Probability for a job to skip a stage & $PF_j$ & 2 & 0\%, 50\% \\
Probability for a machine to be eligible & $PE_{ij}$ & 2 & 50\%, 100\% \\
@max-weis
max-weis / pom.xml
Created May 26, 2020 09:56
swagger wildfly config
<version.swagger>2.0.2</version.swagger>
<swagger-ui.version>3.17.0</swagger-ui.version>
---
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.3</version>
@max-weis
max-weis / TestContainerWaiting.java
Last active May 18, 2020 16:51
4 ways to wait for a container
// Status Code
GenericContainer container = new GenericContainer("your/image:1.0.0")
.waitingFor(Wait.forHttp("/"));
// Docker Healthcheck
GenericContainer container = new GenericContainer("your/image:1.0.0")
.waitingFor(Wait.forHealthcheck());
// Log
GenericContainer container = new GenericContainer("your/image:1.0.0")
stages:
- go-build
- go-test
- container-build-push
build:
stage: go-build
image: golang:1.13
script:
- go build
@max-weis
max-weis / Dockerfile
Created September 25, 2019 09:53
Base Images for Golang apps
ARG GO_VERSION=1.13
FROM golang:${GO_VERSION}-alpine
WORKDIR $GOPATH/app/
RUN apk add git
@max-weis
max-weis / Dockerfile
Last active September 25, 2019 09:45
# build stage
FROM golang:1.13-alpine as build
WORKDIR $GOPATH/app/
RUN apk add git
# copy and download dependencies
COPY go.* .
RUN go mod download
@max-weis
max-weis / Dockerfile
Created September 25, 2019 09:25
Golang Multistage Dockerfile
# build stage
FROM golang:1.13-alpine as build
WORKDIR $GOPATH/app/
RUN apk add git
# copy and download dependencies
COPY go.* .