Skip to content

Instantly share code, notes, and snippets.

View migueltg's full-sized avatar

Miguel migueltg

View GitHub Profile
@migueltg
migueltg / pre-commit-eslint
Last active April 27, 2018 10:50 — forked from shettayyy/pre-commit-eslint
Pre-commit hook for Linting JS with ESLint before commit.
#!/bin/sh
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".jsx\{0,1\}$")
ESLINT="$(git rev-parse --show-toplevel)/node_modules/.bin/eslint"
if [[ "$STAGED_FILES" = "" ]]; then
exit 0
fi
PASS=true
@migueltg
migueltg / README.md
Created February 17, 2023 09:44 — forked from woblerr/README.md
Docker containers logs clearing script

Docker containers logs clearing script

chmod +x ./clear_docker_container_logs.sh

Usage

Usage: ../clear_docker_container_logs.sh [-c ""]