Skip to content

Instantly share code, notes, and snippets.

View islomar's full-sized avatar

Isidro López islomar

View GitHub Profile
@islomar
islomar / osx-hints.md
Created May 5, 2019 16:48
Mac OSX hints

Mac OSX hints

  • Where to configure the PATH:
    • file /etc/paths
    • ~/.profile of your home directory
  • /etc/profile for system-wide operations.
@islomar
islomar / gradle.md
Last active May 8, 2019 14:32
Info and hints related with Gradle

Gradle cheat sheet

  • https://www.vogella.com/tutorials/Gradle/article.html
  • ./gradlew build -x test: skip tests
  • Refresh dependencies: You can refresh dependencies in your cache with the command line option --refresh-dependencies. You can also delete the cached files under ~/.gradle/caches. With the next build Gradle attempts to download the dependencies again.
  • How to use a local dependency B from A:
    • In A
repositories {
    mavenLocal()
@islomar
islomar / README.template.md
Last active September 19, 2019 15:28
Template for README.md

[Project/repo title]

@islomar
islomar / pre-commit
Created December 18, 2024 14:57
Example of pre-commit and pre-push files for a monorepo with lots of different modules (low-cost solution)
#!/bin/bash
FOLDERS_TO_INSPECT=("folder1" "folder2" "folder3")
STAGED_FILES="$(git diff --cached --name-only)"
function main {
for folder_to_inspect in "${FOLDERS_TO_INSPECT[@]}" ; do
echo $folder_to_inspect
run_actions_if_needed $folder_to_inspect