Skip to content

Instantly share code, notes, and snippets.

View michaellihs's full-sized avatar

Michael Lihs michaellihs

View GitHub Profile
@michaellihs
michaellihs / swagger-cheatsheet.md
Last active January 23, 2021 00:38
Swagger Cheatsheet

Swagger and Spring

Add the following dependencies to your pom.xml

<dependency>
    <groupId>io.springfox</groupId>
    <artifactId>springfox-swagger-ui</artifactId>
 2.5.0
@michaellihs
michaellihs / mac-cheat-sheet.md
Last active November 23, 2018 17:48
Mac OS Cheat Sheet

Mac Cheat Sheet

This Gist contains a collection of resources and snippets for the administration of your Mac.

System Tweaks

  • Disable Boot Chime
@michaellihs
michaellihs / git-cheat-sheet.md
Last active April 11, 2017 10:42
Git Cheat Sheet

Git Cheat Sheet

Extracting Repositories from Sub Paths

#!/usr/bin/bash

set -xue
@michaellihs
michaellihs / tmux-cheat-sheet.md
Last active May 3, 2024 10:55
tmux Cheat Sheet
@michaellihs
michaellihs / docker-on-mac.md
Created September 29, 2016 13:41
Docker on Mac...
rmq_container_id=$(docker run -d --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq) && sleep 5 && docker exec $rmq_container_id rabbitmq-plugins enable rabbitmq_management
@michaellihs
michaellihs / spring-bean-injection.md
Created September 29, 2016 20:08
Spring Bean Injection

Given this question on Stackoverflow I wanted to check whether there is a difference between this style of Bean definition (variant 1):

@Configuration
public class BeanConfiguration {

    @Bean
    public FirstClass firstClass() {
        return new FirstClass();
    }
@michaellihs
michaellihs / spring-boot-testing.md
Last active October 22, 2022 19:21
Spring Boot Testing

Spring Boot Testing

Using Configuration in Tests

The following snippets loads the application context with the configuration given in TestConfiguration.class

@RunWith(SpringRunner.class)
@michaellihs
michaellihs / hadoop-cheatsheet.md
Created October 31, 2016 20:07
Hadoop Cheat Sheet

Avro

  • Supports schema
  • Supports schema changes / schema evolution
  • Avro files are splittable, this means that it can adapt to HDFS block size and you can have one process running per block

Avro Resources

@michaellihs
michaellihs / gocd-cheatsheet.md
Created November 17, 2016 13:14
GoCD Cheatsheet

GoCD Cheatsheet

Running GoCD in Docker

docker run -p 8153:8153 -p 8154:815 -it gocd/gocd-server
docker run --name gocd_agent -it gocd/gocd-agent 

--> this show a Stacktrace for the Agent

@michaellihs
michaellihs / jenkins-elkstack.md
Last active February 9, 2023 15:56
ElasticSearch, Logstash & Kibana for Jenkins Logs