Skip to content

Instantly share code, notes, and snippets.

View helpermethod's full-sized avatar
⌨️
hacking

Oliver Weiler helpermethod

⌨️
hacking
View GitHub Profile

Terminology

Functor
A Functor is any type that defines how `map` applies to it.
@helpermethod
helpermethod / microservices-workshop.md
Last active October 19, 2017 18:04
Microservices Workshop

Agenda

Kafka

  • Was ist Kafka?
  • Abgrenzung zum klassischen Message Broker
  • Topics und Partions
  • Producer
  • Consumer und ConsumerGroups
  • Skalierung und Ausfallsicherheit
@helpermethod
helpermethod / spring-boot-test-gen.md
Last active April 19, 2018 13:32
Spring Boot Test Generator Plugin

TODO

  • create a custom task
  • create an extension object
  • map project properties to extension properties
generator {
    configuration {
 runner = 'junit-5'
@helpermethod
helpermethod / mvn.md
Last active May 22, 2018 06:36
mvn function
mvn() {
    [ -f mvnw ] && ./mvnw "$@" || command mvn "$@"
}
@helpermethod
helpermethod / prepend.md
Last active September 25, 2019 16:21
A bash function for prepending text to a file

Motivation

While bash lets you easily append to a file, there's no simple way to prepend to a file. The prepend function provides that functionality without relying on external tools like sed.

prepend() {
  printf '%s%s' "$1" "$(< $2)" > "$2"
}
@helpermethod
helpermethod / .vimrc
Last active May 18, 2018 09:49
A minimal .vimrc for the occasional power user
set nocompatible
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall | source $MYVIMRC
endif
call plug#begin()
Plug 'croaker/mustang-vim'
Plug 'vim-airline/vim-airline'
$ docker run -v "$PWD/icons:/icons" flungo/inkscape /usr/bin/inkscape -z -e /icons/toolbox-48.png -w 48 -h 48 /icons/toolbox.svg
@helpermethod
helpermethod / comm.md
Created August 20, 2018 13:03
comm command
comm -23 <(sort other-ids) <(sort obsolete-ids)
@helpermethod
helpermethod / gradle.sh
Last active November 21, 2018 17:15
Working transparently with Gradle and the Gradle Wrapper
gradle() {
[[ -f gradlew ]] && ./gradlew "$@" || command gradle "$@"
}
@helpermethod
helpermethod / gitlab-mr-cl.md
Last active January 10, 2019 16:22
Open a new GitLab Merge Request from the command line

Add the following shell function to your .bashrc.

mr() {
  local url=$(git remote get-url origin)

  # on OSes other than Mac OS X replace `open -a "Google Chrome` with your browsers executable, e.g. google-chrome on Ubuntu
  open -a "Google Chrome" "${url%.git}/merge_requests/new?merge_request[source_branch]=$(git symbolic-ref -q --short HEAD)"
}