Add gitignore and dock management script

This commit is contained in:
Sebastian Cabrera 2025-03-13 18:07:32 -04:00
parent 406c088547
commit baf378c393
2 changed files with 137 additions and 0 deletions

99
.gitignore vendored Normal file
View file

@ -0,0 +1,99 @@
# macOS system files
.DS_Store
.AppleDouble
.LSOverride
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
# IDE - JetBrains (IntelliJ, PyCharm, etc.)
.idea/
*.iml
*.iws
.idea_modules/
# IDE - Eclipse
.project
.classpath
.settings/
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
.env
.venv
env/
venv/
ENV/
# Node
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.env.local
.env.development.local
.env.test.local
.env.production.local
# Logs
logs
*.log
# Build output
dist/
build/
out/
# Coverage reports
coverage/
.coverage
htmlcov/
# Temporary files
*.swp
*.swo
*~
*.tmp
*.bak
*.orig
# System Files
Thumbs.db
ehthumbs.db
Desktop.ini

38
scripts/dock.sh Executable file
View file

@ -0,0 +1,38 @@
#!/bin/sh
# Function to check dock size
check_dock() {
echo "Current Dock tile size:"
defaults read com.apple.dock tilesize
}
# Function to reset dock
reset_dock() {
echo "Resetting Dock to default settings..."
defaults delete com.apple.dock tilesize
killall Dock
echo "Dock has been reset and restarted."
}
# Show usage if no arguments provided
if [ $# -eq 0 ]; then
echo "Usage: $0 [check|reset]"
echo " check - Show current Dock tile size"
echo " reset - Reset Dock to default settings"
exit 1
fi
# Process command line arguments
case "$1" in
"check")
check_dock
;;
"reset")
reset_dock
;;
*)
echo "Invalid option: $1"
echo "Usage: $0 [check|reset]"
exit 1
;;
esac