How to Write Awesome Shell Script With ChatGPT

Introduction Shell scripting is a powerful tool for automating tasks in operating systems such as Linux and Unix. It is a great way to save time and reduce manual tasks. However, it can be challenging to start with shell scripting, especially if you are new to programming. Fortunately, ChatGPT is here to help you learn how to write shell scripts like a pro. Why use ChatGPT for Shell Scripting? ChatGPT can be a great tool for those who are new to shell scripting and want to automate tasks quickly and efficiently....

April 10, 2023 · 6 min · Me

Intro to Homebrew

安装Homebrew 打开终端,复制以下代码到终端,按回车即可: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 词汇 含义 formula (e) 安装包的描述文件,formulae 为复数 cellar 安装好后所在的目录 keg 具体某个包所在的目录,keg 是 cellar 的子目录 bottle 预先编译好的包,不需要现场下载编译源码,速度会快很多;官方库中的包大多都是通过 bottle 方式安装 tap 下载源,可以类比于 Linux 下的包管理器 repository cask 安装 macOS native 应用的扩展,你也可以理解为有图形化界面的应用。 bundle 描述 Homebrew 依赖的扩展 Command Description brew search [关键词] search software brew install [软件名] Install software brew list List all packages installed brew upgrade upgrade software brew uninstall [软件名] Uninstall software brew info [软件名] Get software info brew cleanup Clean up old software 管理后台软件 诸如 Nginx、MySQL 等软件,都是有一些服务端软件在后台运行,如果你希望对这些软件进行管理,可以使用 brew services 命令来进行管理...

November 28, 2022 · 1 min · Me

Top12 Alfred Workflow

Before I use Alfred, I thought it was not that useful, some YouTubers just exaggerate its function. And I will not use it some much time in a day. Here is the top 12 workflow I recommend to anyone who uses Mac. 1. Youtube Music 2. VS Code 3. TimeZone 4. Things 5. Temporary Mail 6. Reminders 7. Notion 8. GitHub 9. Calculate 10. Browser Tabs 11. Advanced Google Map 12....

November 23, 2022 · 1 min · Me

Everything About Git

The Perfect Commit Add the rightchanges Include changes for only one topic, git add -p index.html Compose a goodcommit message, git commit Subject = concise summary of what happened Body = more detailed explanation What is now different then before? What’s the reason for the change? Is there anything to watch out for / anything particularly remarkable?...

November 9, 2022 · 2 min · Me