Skip to content

Commit e7030a1

Browse files
committed
docs: update gems of august
1 parent 3fd37c5 commit e7030a1

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/content/blog/2025/08/31/gems-of-august.en.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,26 @@ Long time no see, huh? Let's try to bring this habit back.
99

1010
## Technology
1111

12+
### MacOS
13+
14+
#### Host names
15+
16+
Did you know that your Mac has three different host names? There is the `ComputerName`, that is the name you see in the Finder or AirDrop for example. Then you have the `LocalHostName`, which is used for Bonjour and other discovery services. And finally, there is the networking `HostName`, which is used for SSH and other network services. The `ComputerName` and `LocalHostName` can be set via the System Preferences, but the `HostName` can only be set via the command line. I like to set all three via the command line:
17+
18+
```bash
19+
sudo scutil --set ComputerName "PearEatsApples"
20+
sudo scutil --set HostName "PearEatsApples"
21+
sudo scutil --set LocalHostName "PearEatsApples"
22+
```
23+
24+
By the way, how do you choose your host names?
25+
26+
#### Greedy updates with `brew`
27+
28+
Some GUI apps like to update themselves. A few examples are Visual Studio Code, Chromium or AltTab. `brew` treats this apps differently than other apps. It doesn't update them with `brew upgrade --cask`, because `brew` expect them to update them independently via their own mechanism.
29+
30+
I usually like to update everything at once, so I found out that you can use `brew upgrade --cask --greedy` to update all casks, including those that usually update themselves.
31+
1232
### Podman
1333

1434
Recently when I had the problem, that when I triggered an update of an app hosted on Podman, sometimes it forgot the credentials to the container registry.

0 commit comments

Comments
 (0)