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
#!/bin/bash | |
# Configuration | |
APP_ID="com.your.app-id" | |
APP_NAME="YourAppName" | |
echo "🧹 Cleaning ${APP_NAME} data..." | |
# Clear preferences | |
defaults delete ${APP_ID} 2>/dev/null || true |
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
#!/bin/bash | |
DB_PATH="/path/to/sqlite/database.db" # Path to your SQLite database | |
TIMESTAMP=$(date +"%Y%m%d_%H%M%S") # Timestamp for the backup | |
ROLLING_LIMIT=30 # Number of backups to keep | |
BACKUP_DIR="/tmp" # Temporary local backup directory | |
BACKUP_NAME="backup_$TIMESTAMP.sqlite" # Backup filename | |
REMOTE_NAME="remote" # Name of your rclone remote | |
REMOTE_PATH="backups" # Remote bucket or folder |
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
function generateColorUtilities(cssProperty) { | |
return function({ addUtilities, theme }) { | |
const newUtilities = {} | |
Object.entries(theme('colors')).forEach(([key, value]) => { | |
if (typeof value === 'object') { | |
Object.entries(value).forEach(([shade, color]) => { | |
newUtilities[`.${cssProperty}-${key}-${shade}`] = { | |
[cssProperty]: color, | |
} | |
}) |