From baf378c393009e3ac588674bbd607424fd3e3bfc Mon Sep 17 00:00:00 2001 From: Sebastian Cabrera Date: Thu, 13 Mar 2025 18:07:32 -0400 Subject: [PATCH] Add gitignore and dock management script --- .gitignore | 99 +++++++++++++++++++++++++++++++++++++++++++++++++ scripts/dock.sh | 38 +++++++++++++++++++ 2 files changed, 137 insertions(+) create mode 100644 .gitignore create mode 100755 scripts/dock.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3f4bad1 --- /dev/null +++ b/.gitignore @@ -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 diff --git a/scripts/dock.sh b/scripts/dock.sh new file mode 100755 index 0000000..e6ac137 --- /dev/null +++ b/scripts/dock.sh @@ -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 \ No newline at end of file