---
# System prepended metadata

title: ' HomeBrew Tools'
tags: [terminal, MacOS]

---

紀錄平時看到的一些有趣的HomeBrew工具

:::spoiler **Resource**
- [I Can’t Explain How Useful These 9 Mac HomeBrew Tools Are](https://medium.com/macoclock/i-cant-explain-how-useful-these-9-mac-homebrew-tools-are-66ee1ec7870)
:::


## QRCode 產產生器

Install
```
brew install qrencode
```

Encode a string
```
qrencode "xxxxxx"
```

Encode a string & Save as png
```
qrencode -o xxx.png "xxxxxx"
```

Encode WIFI password
```
WIFI:T:<auth_type>;S:<SSID>;P:<password>;;
```
- `<auth_type>` : WPA, WPA2, WEP, or nopass
- `<SSID>` : Your Wi-Fi name
- `<password>` : Your Wi-Fi password

## Terminal 時鐘
Install
```
brew install tty-clock
```

Usage
```
tty-clock -st
```
- Enable seconds: `-s`
- Enable 12h format: `-t`
- Use UTC time: `-u`
- Set date format: `-f format`
- Hide date: `-D`
- Enable blinking colon: `-B`

Demo
![](https://hackmd.io/_uploads/Sy_Q3KM92.gif)
