A cleanup script for macOS that runs the following tasks:
brew tap fwartner/tap
brew install fwartner/tap/mac-cleanup
sh -c "$(curl -fsSL https://raw.githubusercontent.com/fwartner/mac-cleanup/main/installer.sh)"
sh -c "$(wget https://raw.githubusercontent.com/fwartner/mac-cleanup/main/installer.sh -O -)"
curl -o cleanup https://raw.githubusercontent.com/fwartner/mac-cleanup/main/mac-cleanup
chmod +x cleanup
sudo mv cleanup /usr/local/bin/cleanup
If installing with curl you need to call cleanup
instead of mac-cleanup
.
curl -fsSL "https://raw.githubusercontent.com/fwartner/mac-cleanup/main/installer.sh" | bash -s update
curl -fsSL "https://raw.githubusercontent.com/fwartner/mac-cleanup/main/installer.sh" | bash -s uninstall
Help menu:
$ mac-cleanup -h
A Mac Cleanup Utility by fwartner
https://github.com/fwartner/mac-cleanup
USAGE:
mac-cleanup [FLAGS]
FLAGS:
-h, prints help menu
-n no brew updates
This project exists thanks to all the people who contribute. [Contribute].
If you like what I am doing please consider sponsor my work!
#!/bin/bash set -eEuo pipefail eval "$(go env)" OUT_DIR="${1-dist}" # To override the latest git tag as the version, pass something else as the second arg. VERSION=${2:-$(git describe --tags --always
关于 boost Boost provides free peer-reviewed portable C++ source libraries. 官网:https://www.boost.org 文档:http://www.boost.org/more/getting_started/unix-variants.html B2 文档:http://www.boost.org/build/ Get
用brew install corkcrew的时候出现以下问题: zhaoqing.li@MBC02XC04EJGH7 ~ % brew install corkscrew Warning: No available formula with the name "corkscrew". ==> Searching for similarly named formulae... Error: No
Homebrew是一款Mac OS平台下的软件包管理工具,拥有安装、卸载、更新、查看、搜索等很多实用的功能。简单的一条指令,就可以实现包管理,而不用你关心各种依赖和文件路径的情况,十分方便快捷。是一款macOS(或 Linux)缺失的软件包的管理器 安装 安装Homebrew的环境,这里给出简要的安装命令,可以请移步至Homebrew官网 https://brew.sh/index_zh-cn /
docker-cleanup 是一个简单的 Docker 清理脚本,会删除: 停止超过1天的容器 没有正在运行容器的镜像 特性 会删除<none>:<none>的镜像 如果这个镜像有多个repo:tag指向,会删除多余的repo:tag,除了正在跑的容器对应的repo:tag,实际上这是docker rmi的特性 会有很多报错信息,你可以决定要不要2>/dev/null来不显示这些信息 玩的开心!
sh A shell parser, formatter, and interpreter. Supports POSIX Shell, Bash, andmksh. Requires Go 1.16 or later. Quick start To parse shell scripts, inspect them, and print them out, see the syntaxexamp
go-sh是一个golang的调用shell的库。 使用linux的人都知道shell脚本有它难以取代的优势,用2个词形容就是,简单、粗暴。但是shell有不少的坑,很容易就写的换个机器就不能使了。golang的优势很明显,写出来的代码bug少的可怜,而且跨各种平台。如果能将shell与golang结合起来,那将是强强联手,所向无敌。 go-sh就是这个一个golang库。如下是一个shell脚本
remote-sh 提供了一种相当友好的方式去管理服务器上的 shell 脚本,可以轻松地添加、修改、删除、运行它们。 每个脚本可以被一个独特的 URL 请求触发运行,例如: $ curl https://YOUR_REMOTE_SH_HOST/script/run/example.sh/UNIQUE_SIGN_FOR_THIS_SCRIPT 这套系统利用 Access Key 策略来认证你的身份
我有Ignite2.7和5节点集群。超过40Mil的数据正在生成并存储在ignite缓存中。我已经设定了3天的有效期。今天其中一个点火节点停止了,并显示如下错误。请帮助我确定并解决这个问题。 [2019-09-11 07:45:59,570][错误][TTL-Cleanup-Worker-#170][根]检测到严重系统错误。将根据配置的处理程序[hnd=stopnodeorhaltfailureh
名称 git-sh-setup - 常用的 Git shell 脚本设置代码 概要 . "$(git --exec-path)/git-sh-setup" 描述 这不是最终用户想要运行的命令。永远不会是。本文档适用于正在研究 Pornic-ish 脚本和/或正在编写新脚本的人员。 该git sh-setup小脚本设计(使用要采购.通过其他 shell 脚本)设置一些变量,在普通的 Git 目录和几