Skip to content

Instantly share code, notes, and snippets.

echo "hello world"
frontend http
bind *:80
timeout client 60s
mode http
acl app1 path_end -i /app1
acl app2 path_end -i /app2
use_backend demo-app1 if app1
use_backend demo-app2 if app2
default_backend demo-apps
frontend http
bind *:80
timeout client 60s
mode http
default_backend demo-apps
backend demo-app1
timeout connect 10s
timeout server 100s
mode http
frontend http
bind *:80
timeout client 60s
mode http
default_backend demo-apps
backend demo-apps
timeout connect 10s
timeout server 100s
mode http
FROM openjdk:8-jdk-alpine
ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-jar","/app.jar"]
package com.example.demohaproxy;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@SpringBootApplication
@RestController
@lamoboos223
lamoboos223 / ubuntu-install-bitchx.sh
Created July 16, 2022 23:51 — forked from AubreyHewes/ubuntu-install-bitchx.sh
Compile and Install BitchX on Ubuntu
#!/bin/sh
####################################################################################
#
# Download Compile and Install BitchX on Ubuntu
#
####################################################################################
# download bitchx source
# @todo make smarter, i.e. regexp, though now uses _always_ available commands (sic)
public enum EventTypes {
ORDER_CREATED,
ORDER_SERVING,
ORDER_CANCELLED,
ORDER_SERVED,
ORDER_UPDATED,
ORDER_DELETED
}
import com.example.restaurant.avro.schema.OrderAvro;
import com.example.restaurant.kafka.AvroProducer;
import com.example.restaurant.mapper.OrderMapper;
import com.example.restaurant.models.EventTypes;
import com.example.restaurant.models.OrderModel;
import com.example.restaurant.models.OrderStatus;
import com.example.restaurant.repository.OrderRepo;
import com.example.restaurant.request.OrderRequest;
import com.example.restaurant.service.OrderService;
import com.example.restaurant.avro.schema.OrderAvro;
import com.example.restaurant.mapper.OrderMapper;
import com.example.restaurant.models.EventTypes;
import com.example.restaurant.models.OrderModel;
import com.example.restaurant.serviceimpl.OrderServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Service;