Mac最小化窗口的方法

Mac最小化窗口的方法

使用快捷键 Command+Option+H,可以实现快速隐藏除当前应用程序之外所有程序窗口的目的。 使用快捷键 Command+Option+M+H,可以实现快速隐藏所有应用程序窗口的目的。


Terwer...小于 1 分钟经验分享macwindow
利用macOS的自动操作实现登录执行特定shell脚本

利用macOS的自动操作可以大大的提升我们的工作效率。

步骤如下:

1、搜索 自动操作 启动。

image-20220615101026949
image-20220615101026949

2、点击右侧Tab,打开资源库。

image-20220615101129984
image-20220615101129984

Terwer...小于 1 分钟MAC转区macOS专区macmacosshellautoshellscriptlogin
一个令人沮丧的问题:Mac的unzip竟然不支持中文名

文章更新历史

2022/05/11 feat:初稿。

话说,这都 2022 年了,Mac 的 unzip 还是不支持中文名。

找到了几个方案,试了下,最终还是果断用别的代替。

之前的方案有两个

自己编译 unzip610b

这个找到了源码,但是鼓捣半天没成功,后面在折腾吧。。。

https://sourceforge.net/projects/infozip/files/latest/download


Terwer...小于 1 分钟实用技巧经验分享macunzipunar
Mac Big Sur 安装CocoaPods

Mac Big Sur 安装CocoaPods

切换homebrew为中科大源

# 替换各个源
git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git
git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git

# zsh 替换 brew bintray 镜像
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.zshrc
source ~/.zshrc

# bash 替换 brew bintray 镜像
# echo 'export HOMEBREW_BOTTLE_DOMAIN=https://# mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile
# source ~/.bash_profile

# 刷新源
$ brew update

Terwer...大约 5 分钟实用技巧经验分享maccocoapods
Mac安装Nginx

Mac安装Nginx

安装

brew install nginx

结果如下:

==> Installing nginx
==> Pouring nginx--1.21.6.monterey.bottle.tar.gz
==> Caveats
Docroot is: /usr/local/var/www

The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that
nginx can run without sudo.

nginx will load all files in /usr/local/etc/nginx/servers/.

To restart nginx after an upgrade:
  brew services restart nginx
Or, if you don't want/need a background service you can just run:
  /usr/local/opt/nginx/bin/nginx -g daemon off;
==> Summary
🍺  /usr/local/Cellar/nginx/1.21.6: 26 files, 2.2MB
==> Running `brew cleanup nginx`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Caveats
==> nginx
Docroot is: /usr/local/var/www

The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that
nginx can run without sudo.

nginx will load all files in /usr/local/etc/nginx/servers/.

To restart nginx after an upgrade:
  brew services restart nginx
Or, if you don't want/need a background service you can just run:
  /usr/local/opt/nginx/bin/nginx -g daemon off;
➜  ~

Terwer...小于 1 分钟经验分享实用技巧macnginx