This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git branch --merged | grep -v "\*" | grep -v "main" | xargs -n 1 git branch -d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gc() { | |
| if [[ -z "$1" ]]; then | |
| echo "Usage: gc <search>" | |
| return 1 | |
| fi | |
| local matches | |
| matches=$(git branch --list | sed 's/^..//' | grep -i "$1") | |
| if [[ -z "$matches" ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3.11 | |
| # Required parameters: | |
| # @raycast.schemaVersion 1 | |
| # @raycast.title GoPro Cleanup | |
| # @raycast.mode fullOutput | |
| # Optional parameters: | |
| # @raycast.icon 🎥 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Backs up specified SQL Server databases to a local directory with timestamped filenames, | |
| compresses the backups, and deletes old backups after 7 days. | |
| .DESCRIPTION | |
| This script automates the backup of multiple SQL Server databases to disk, appends a timestamp | |
| to each backup file, compresses them into ZIP archives, and removes backups older than 7 days. | |
| The script uses sqlcmd for database backups and PowerShell for file management. |