Skip to content

Instantly share code, notes, and snippets.

@aboqasem
Last active March 9, 2024 15:15
Show Gist options
  • Save aboqasem/1105d7343fc225606809a47dca25d831 to your computer and use it in GitHub Desktop.
Save aboqasem/1105d7343fc225606809a47dca25d831 to your computer and use it in GitHub Desktop.
Dev Journal

Dev Journal

Git

  • Log all commits that add/delete the search_string in the repo

    git log -S search_string

Maven

  • Build only changed submodules, and any dependents, in a Maven project

    mvn clean install --projects $(git diff --name-only */ | awk -F/ '{print ","$1}' | sort -u | tr -d '\n' | cut -c 2-) --also-make-dependents

PostgreSQL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment