DEV Community

Cover image for I Automated the Boring Stuff on My Mac
Aditya Thakkar
Aditya Thakkar

Posted on

I Automated the Boring Stuff on My Mac

My disk kept getting full. I'd be in the middle of something and suddenly my Mac would tell me I'm out of space.

Then I'd spend 30 minutes hunting for what's eating it - old Docker images, node_modules folders, random video files.

So I automated it.

What I did

floma new "analyze disk space in ~/Documents, save the results to an Excel sheet and email me that sheet"
Enter fullscreen mode Exit fullscreen mode

Now I get an email every week with an Excel breakdown of what's using space. I can see it coming before it becomes a problem.

How it works

Install https://getfloma.com:

brew tap getfloma/floma && brew install floma
Enter fullscreen mode Exit fullscreen mode

Then describe what you want. It figures out the steps, creates a workflow, and you can schedule it to run automatically.

The cool part is it chains everything together - analyzes the disk, creates the spreadsheet, and emails it. All from one command.

Other things I use it for

Slack notifications for important files:

floma new "zip all of the loose files in Documents relating to contracts and slack the zipfile to #legal"
Enter fullscreen mode Exit fullscreen mode

Weekly backup reminders:

floma new "check if backups folder was modified in the last 7 days, if not email me a reminder"
Enter fullscreen mode Exit fullscreen mode

Each one takes 2 minutes to set up. The Slack and email integrations work out of the box.


Everything runs locally. Free tier works, but the Personal tier ($4.99/month early bird pricing) is worth it for scheduled workflows.

getfloma.com

Top comments (0)