Skip to content

Instantly share code, notes, and snippets.

View gaurav9822's full-sized avatar

Gaurav Deshpande gaurav9822

  • India
View GitHub Profile
gaurav9822 /
Created November 10, 2023 04:41
Periodic commands for docker cleanup in your machine
docker image prune
docker container prune
docker volume prune
docker builder prune
gaurav9822 /
Created November 10, 2023 04:06
Clean all maven target folder recursively from your main projects directory
# Find all directories containing pom.xml
directories=$(find . -type f -name pom.xml -exec dirname {} \;)
# Iterate over each directory and run mvn clean
for dir in $directories; do
echo "Cleaning $dir"
(cd "$dir" && mvn clean)
Create a plist script - local.gitPullSreHelm.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">