MBP
努力的老周
一个老码农,中年大叔。打过工,做过老板。
现有神兽一枚,努力培养神兽中。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
MBP中增加万能头 bits/stdc++.h
一直使用 G++ 的万能头,感觉还是比较爽了。Mac 由于使用 clang++ 来编译,不存在万能头。用久了感觉非常不爽。 增加万能头 其实万能头就是一个头文件,我们可以自己在 Mac 中增加对应的文件即可。 include 目录 clang 编译器对应的 include 目录为:/Library/Developer/CommandLineTools/usr/include。 建立万能头 我们只需要在对应的目录下,生成 stdc++.h 即可。 cd /Library/Developer/CommandLi原创 2021-10-10 17:49:53 · 437 阅读 · 0 评论 -
Mac OS 产生 Coredump,定位 Segmentation Fault
前期工作 开启 Mac Coredump % sudo sysctl kern.coredump=1 kern.coredump: 1 -> 1 设置 /cores 目录属性 $ sudo mkdir /cores $ sudo chown root:admin /cores $ sudo chmod 1775 /cores $ sudo chmod o+w /cores 设置 core 文件大小 $ ulimit -c unlimited 定位 Segmentation F原创 2020-09-08 00:31:56 · 6014 阅读 · 1 评论 -
brew update 错误解决。git: ‘credential-osxkeychain‘ is not a git command.
问题 今天想升级一下 MBP 的系统,使用命令如下 brew update git: 'credential-osxkeychain' is not a git command. See 'git --help'. git: 'credential-osxkeychain' is not a git command. See 'git --help'. fatal: could not read Username for 'https://github.com':原创 2020-09-07 17:15:47 · 4092 阅读 · 0 评论
分享