Recently, I wanted to Auto-deploy Sveltekit to VPS using GitHub Actions and rsync
I need to remove all sub-directory excluding some directories. The solution I found is using find and xargs.
Useful df and du snippets that I frequently used
Simple setup to load .env file with godotenv and envconfig for type safety
ObjectId.isValid is not really good to validate an ObjectId