Skip to content
0

Shell

Shell 为主语言的开源软件

mac-cleanup ---> 清理缓存空间

一个简单的 shell 脚本,会针对于如下的文件做清理:

$ mac-cleanup
Emptying the Trash 🗑 on all mounted volumes and the main HDD...
Clearing System Cache Files...
Clearing System Log Files...
Clearing Google Chrome Cache Files...
Cleaning up iOS Applications...
Removing iOS Device Backups...
Cleaning up XCode Derived Data and Archives...
Cleaning up iOS Simulators...
Cleaning up Homebrew Cache...
Cleaning up any old versions of gems
Cleaning up Docker
No matching processes belonging to you were found
Cleaning up npm cache...
Cleaning up Yarn Cache...
Cleaning up pnpm Cache...
Clearing Go module cache...
Deleting Java heap dumps...
Cleaning up DNS cache...
Purging inactive memory...
Success!
11.45 GiB of space was cleaned up

目前已经不维护了,可以使用 python 重构的版本:mac-cleanup/mac-cleanup-py

windows ---> Docker 容器内的 Windows

用 Docker 容器启动 windows,支持多个 windows 版本

docker run -it --rm -p 8006:8006 --device=/dev/kvm --cap-add NET_ADMIN --stop-timeout 120 dockurr/windows

Released under the MIT License.