$ show sdetweil/MagicMirror_scripts
This repository is a collection of shell scripts for installing, upgrading, and managing MagicMirrorΒ², an open-source smart mirror platform. The scripts automate the setup of Node.js, npm, pm2, and the MagicMirror application on Raspberry Pi and other Linux systems, as well as macOS. They handle tasks such as initial installation, version upgrades, pm2 process management, screensaver disabling, disk cleanup, and switching to browser-over-server mode. The scripts are designed to be executed via curl pipe to bash, ensuring users always run the latest version. While primarily operational, the cleanup.sh script stands out as a well-structured, reusable utility for reclaiming disk space on any system.
The LLM identified 1 files worth highlighting for reuse:
A self-contained bash script that reclaims disk space by clearing apt cache, trimming systemd journal, flushing npm and pm2 caches, and pruning old Electron downloads. It supports a --dry-run flag to preview changes without applying them, logs all actions, and is well-commented. The script is isolated from the rest of the repository and could be extracted and used in any Linux environment with minimal modification.