-
macos could not sleep
pmset -g
可以看到是什么进程阻止了进入睡眠 -
kafka leader epoch
https://t1mek1ller.github.io/2020/02/15/kafka-leader-epoch/
讲的不错
-
人人为自己
在遵守一定规则的前提下,比如说“说到要做到”,比如说“先到先得”等等吧,人人都争取自己的利益,这个社会都能公平,才能相处的好。
对于那种只会无私,所有事情都要牺牲自己成全他人的人,我只想说去你MB,反正是让我极其不舒服,看着就恶心难受。
不懂得爱自己的人,不可能懂得爱别人。
-
openssl x509 check cert
openssl x509 -in /etc/pki/tls/certs/ca-bundle.crt -text -noout
https://www.ibm.com/support/pages/openssl-commands-check-and-verify-your-ssl-certificate-key-and-csr
-
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.