banner
NEWS LETTER

Cool Mac

Scroll down

Cool Mac

未mac商店签名的应用打不开

1
sudo xattr -d com.apple.quarantine /Applications/xxx.app

关闭mac连接蓝牙自动打开音乐

1
launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist 

adb基于应用写入手机安全设置的权限

adb命令参考链接

1
2
// tasker
./adb shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGS

mac删除Microsoft autoupdate

进入到Library/Application Support/Microsoft/,删除MAU2.0文件夹或里面的Microsoft AutoUpdate.app

brew install nginx

image-20220328203922061

brew报错

1
2
fatal: not in a git directory
Error: Command failed with exit 128: git

出现上面的报错是,可brew -v查看

1
2
3
4
5
6
7
8
9
10
11
12
brew -v
Homebrew 4.0.20
fatal: detected dubious ownership in repository at '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'
To add an exception for this directory, call:

git config --global --add safe.directory /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
Homebrew/homebrew-core (no Git repository)
fatal: detected dubious ownership in repository at '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask'
To add an exception for this directory, call:

git config --global --add safe.directory /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask
Homebrew/homebrew-cask (no Git repository)

执行一下上面两个命令就可以了

mac用nginx做端口转发

参考:mac下调试80端口

在mac下默认没有1024以下端口的访问权限

  1. 可以通过nginx端口转发来将80端口的请求打到其他端口
  2. 可以通过pf防火墙做端口转发
  3. sudo
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    # 更新 Homebrew
    ➜ brew update

    # 搜索相关的包
    ➜ brew search [关键词]

    # 查看包的信息
    ➜ rew info [软件名]

    # 查看已安装的包
    ➜ brew list

    # 更新某个软件
    ➜ brew upgrade [软件名]

    # 清理所有软件的旧版
    ➜ brew cleanup

    # 卸载某个软件
    ➜ brew uninstall [软件名]

    # ip 命令 查看ip地址很方便
    ➜ brew install iproute2mac

实用命令

1
2
3
4
# 复制文件内容pbcopy命令,在windows中是clip
vi a.txt
cat a.txt | pbcopy
# 此时剪切板内复制的内容即文件内容

Mac Awesome App

010Editor

十六进制编辑器

HandShake

同一局域网下手机和电脑互传文件

ITerm2

mac下的终端,配合oh my zsh等使用

Macs Fan Control

mac下的风扇控制

Noizio

白噪音

Paste

剪切板历史

PDF Expert

mac下好用的PDF阅读器

SnippetsLab

代码片段管理器

Termius

mac端ssh连接

The Unarchiver

解压缩文件

FileZilla

ftp, sftp文件上传工具

Tencent Lemon

腾讯出的mac清理工具

Expressions

写正则表达式

Charles

mac端抓包&代理
image-20230505150903566

Dash

Dash is an API Documentation Browser and Code Snippet Manager
离线api文档查看器、代码片管理

orbStack

代替docker官方,方便管理docker容器

gifox

gif制作录屏

Arc

浏览器,尝试中,

netnewswire

ssr订阅管理

rclone

云存储备份

freeze

命令行工具,生成好看的代码图片

sing-box

proxy platform

mos

鼠标滚轮方向翻转 github

picGo

dnsmasq

轻量的本地dns服务器

ps: 没掌握使用方法😭

其他文章