Skip to content

Instantly share code, notes, and snippets.

View islomar's full-sized avatar

Isidro López islomar

View GitHub Profile
@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
@islomar
islomar / README.template.md
Last active September 19, 2019 15:28
Template for README.md

[Project/repo title]

@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 / 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 / swagger.md
Last active October 26, 2018 09:04
Notes about Swagger
@islomar
islomar / incident-resolution.md
Last active March 19, 2020 12:13
Troubleshooting : incident resolution cheat sheet
@islomar
islomar / vscode-cheat-sheet
Last active May 1, 2018 15:19
VSCode cheat sheet
* Ctrl+m: toggle tree view
* Ctrl+\: split vertical
* Ctrl+`: integrated terminal
Ctrl + Shift + B: run script
Ctrl + \ : toggle tree view
* `php --ini`
* Find your php.ini file
* `php -m`
* See your modules
* Code coverage
* You need XDebug.
* You can check it with `php --ri xdebug`
* Check if the module appears with `php -m`