-
MACOS 更新证书
Add Use command:
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ~/new-root-certificate.crt
Remove Use command:
sudo security delete-certificate -c "<name of existing certificate>"
-
bash-regular-expressions
-
set termguicolors
配置 VIM Color 一直怪怪的,今天才知道
set termguicolors
-
github action
本来想看一下 github action 怎么使用,然后用在自己的 gohangout 项目里面,自动打包一个 Docker Image 并 Push 的。
本以为一小时就能了解一下怎么用然后应用起来的,没想到有点复杂,没搞定,明天再具体看吧。
-
哪里有躺平派
郑州富士康这个事情出来,我又在微博上看到有人批评躺平派。
因为用了好多讽刺的手法,我一时没有搞清里面的逻辑。但我最想搞清楚的还是,他们批评的躺平派是什么?
能不能给一个定义,什么是躺平派。按这个定义,在中国能不能找到躺平派,有多少躺平派?
你们不能自己树一下什么躺平派就开始批评了啊,对着空气说话呢?
小区有个阳性就要全部封里面,一个密接就要把整个楼封起来,富士康几万老百姓要走路几十甚至上百里路回家没人管。质疑一下批评一下这些现象就叫躺平派了?
-
yaml multilines
# Multiple-line strings can be written either as a 'literal block' (using |), # or a 'folded block' (using '>'). # Literal block turn every newline within the string into a literal newline (\n). # Folded block removes newlines within the string. literal_block: | This entire block of text will be the value of the 'literal_block' key, with line breaks being preserved. The literal continues until de-dented, and the leading indentation is stripped. Any lines that are 'more-indented' keep the rest of their indentation - these lines will be indented by 4 spaces. folded_style: > This entire block of text will be the value of 'folded_style', but this time, all newlines will be replaced with a single space. Blank lines, like above, are converted to a newline character. 'More-indented' lines keep their newlines, too - this text will appear over two lines. # |- and >- removes the trailing blank lines (also called literal/block "strip") literal_strip: |- This entire block of text will be the value of the 'literal_block' key, with trailing blank line being stripped. block_strip: >- This entire block of text will be the value of 'folded_style', but this time, all newlines will be replaced with a single space and trailing blank line being stripped. # |+ and >+ keeps trailing blank lines (also called literal/block "keep") literal_keep: |+ This entire block of text will be the value of the 'literal_block' key, with trailing blank line being kept. block_keep: >+ This entire block of text will be the value of 'folded_style', but this time, all newlines will be replaced with a single space and trailing blank line being kept.
-
WORDCHARS
export WORDCHARS=’-_’
-
copilot太棒了
VIM 上面有好多好用的插件,各有所长。但说到最棒的插件,还是copilot,智能补全太厉害了。
-
一年一度喜剧大赛
实在是太好笑了。刚刚看了重逢主题的两个喜剧,又看了一下大猩猩进化的,他们的想象力太赞了,惊人的想象力。
-
OBJC_DISABLE_INITIALIZE_FORK_SAFETY
在运行一些 Python 应用时,遇到下面这个错误。
objc[12297]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
解决:
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES