Skip to content

Instantly share code, notes, and snippets.

View gaurav9822's full-sized avatar

Gaurav Deshpande gaurav9822

  • India
View GitHub Profile
@gaurav9822
gaurav9822 / docker_cleanup.sh
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
gaurav9822 / clean_all.sh
Created November 10, 2023 04:06
Clean all maven target folder recursively from your main projects directory
#!/bin/bash
# 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" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>local.gitPullSreHelm</string>
<key>ProgramArguments</key>