https://renkulab.io/gitlab/-/snippets/1440