Skip to content

Instantly share code, notes, and snippets.

View xiorcal's full-sized avatar

Marceau "XioRcaL" Lacroix xiorcal

View GitHub Profile
@franklsm1
franklsm1 / INSTRUCTIONS.md
Last active March 21, 2024 19:10
Auto configure pre-commit hooks for a Gradle Spring App

Steps

  1. create a file called "pre-commit" with no extension in the project directory root
  2. add the code from the pre-commit file below into that new file
  3. create a new file called "preCommit.gradle" inside of the root gradle folder
  4. add the code from the preCommit.gradle file below into that new file
  5. add the following line at the end of the build.gradle file:
    • apply from: "$projectDir/gradle/preCommit.gradle"

Now when you run the ./gradlew build command the git pre-commit hook will be automatically setup.

@hryk
hryk / notification.plugin.zsh
Last active December 1, 2016 09:38
notification plugin for oh-my-zsh.
# oh-my-zsh! notification plugin
#
# DESCRIPTION
#
# INSTALL
#
# Place this file to $HOME/.oh-my-zsh/plugins/notification/notification.plugin.zsh
#
# USAGE
#