Skip to content

Instantly share code, notes, and snippets.

# This file configures the New Relic Agent. New Relic monitors
# Java applications with deep visibility and low overhead. For more details and additional
# configuration options visit https://docs.newrelic.com/docs/agents/java-agent/configuration/java-agent-configuration-config-file.
#
# <%= generated_for_user %>
#
# This section is for settings common to all environments.
# Do not add anything above this next line.
common: &default_settings
@arley9511
arley9511 / pre-commit
Created January 23, 2020 21:36
The pre commit code style guidelines for the repositories
#!/usr/bin/env bash
echo validate service code style guidelines
mvn git-code-format:validate-code-format
@arley9511
arley9511 / commit-msg
Last active January 23, 2020 21:27
The pre commit message file for validate in every commit
#!/usr/bin/env bash
NC='\033[0m' # No Color
RED='\e[0;31m'
YELLOW='\e[1;33m'
GREEN='\e[0;32m'
INPUT_FILE=$1
MESSAGE=`head -n1 $INPUT_FILE`
MESSAGE_CHECK=`echo $MESSAGE | grep -w "feat\|fix\|docs\|breaking\|demo\|test\|revert"`
@arley9511
arley9511 / docker-cleanup-resources.md
Created July 30, 2018 17:10 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm