摘要: 在mac下,下载 oath-toolkit工具 执行 brew install oath-toolkit 使用虾米啊命令获取 alias smCode="echo `oathtool --totp -b SECKEY `| pbcopy" 参考博客: https://www.jianshu.com/ 阅读全文
posted @ 2022-12-05 17:07 hoey94 阅读(94) 评论(0) 推荐(0) 编辑
摘要: Mac在合盖之后还在掉电,第二天打开一看,只有40%的电量。针对合盖掉电的问题可能有以下解决方法。 1、重置Mac的SMC 根据Mac官方的提示,重置爱SMC可以解决某些电源,电池,风扇相关的问题。重置方法如下: 如何重置 Mac 的 SMC​support.apple.com/zh-tw/HT20 阅读全文
posted @ 2022-06-10 09:00 hoey94 阅读(5557) 评论(0) 推荐(0) 编辑
摘要: 参考博客: https://blog.csdn.net/Cactus_Lrg/article/details/124752397 阅读全文
posted @ 2022-06-08 13:44 hoey94 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 打开VSCODE,开启正则,输入下面内容完成替换 ^(.+)((?:\r?\n.*)*)(?:\r?\n\1)$  阅读全文
posted @ 2021-11-08 13:16 hoey94 阅读(3108) 评论(0) 推荐(0) 编辑
摘要: 将当前登录的用户添加到docker组中,这样以后在访问docker时就不用在sudo了 1. 查看是否创建docker 组 cat /etc/group | grep docker 2.创建docker组,第一步打印出东西证明以前建过,就直接跳过这一步。 sudo groupadd docker 3 阅读全文
posted @ 2020-09-17 23:46 hoey94 阅读(5129) 评论(0) 推荐(0) 编辑
摘要: 创建start.py,代码如下: 运行start.py,端口为8000 阅读全文
posted @ 2019-08-14 17:06 hoey94 阅读(3414) 评论(0) 推荐(0) 编辑
摘要: # 比较1.txt和2.txt的差异 comm [-1-2-3] 1.txt 2.txt # 求1.txt和2.txt的MD5用于区分两个文件是否相同 md5sum 1.txt 2.txt #tr 用于转换或删除文件中的字符。 comm -3 1.txt 2.txt | tr -d '\t' # 查找某文件下是否包含某些字符 grep -rn 'location' ./# 删除掉过期文件fin... 阅读全文
posted @ 2019-07-29 15:00 hoey94 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 这个是截取access.log 21/Jul/2019:00:00:00 - 22/Jul/2019:00:00:04 的日志到access.log-2019-07-21 阅读全文
posted @ 2019-07-29 14:57 hoey94 阅读(303) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/rudy5348/article/details/79299162 阅读全文
posted @ 2019-06-10 10:37 hoey94 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 将下面内容粘贴到/etc/mail.rc中 逐行执行下面指令 重启sendmail服务 发送邮件 mail -v -s "test" 351865576@qq.com< /data/content.txt 错误: Error initializing NSS: Unknown error -8015 阅读全文
posted @ 2019-05-17 19:54 hoey94 阅读(314) 评论(0) 推荐(0) 编辑