Skip to content

Instantly share code, notes, and snippets.

View mathcale's full-sized avatar
💃

Matheus Calegaro mathcale

💃
View GitHub Profile
@mathcale
mathcale / clear-node-modules.sh
Last active June 23, 2020 17:41
Recursively checks and removes "node_modules" directories from projects.
#!/bin/bash
SUMMARY=$(find . -name "node_modules" -type d -prune -print | xargs du -chs)
if [ -z "$SUMMARY" ]; then
echo "👍 No node_modules directories found!"
exit 0
fi
echo -e "👇 The following projects has a \"node_modules\" directory:\n"
@mathcale
mathcale / restart-dock.sh
Created April 9, 2024 17:22
Restart macOS's Dock safely
#!/bin/bash
launchctl stop com.apple.Dock.agent
launchctl start com.apple.Dock.agent
@mathcale
mathcale / catppuccin-mocha-slack-new-ui.md
Created April 30, 2024 19:48
Catppuccin Mocha colors for Slack's new UI
  1. Click your profile picture in the bottom left.
  2. Go to Preferences → Themes
  3. Click on "Import theme" and paste the following string:
#1E1E2E,#CBA6F7,#A6E3A1,#FAB387

Source