导航

2022年4月20日 #

线程锁(Redirect)

摘要: pthread_rwlock_rdlock(&s_rwlock);pthread_rwlock_unlock(&s_rwlock);pthread_rwlock_wrlock(&s_rwlock); 【pthread_rwlock_rdlock】 将要进行读操作,如果有人在写,阻塞;否则,解锁之前, 阅读全文

posted @ 2022-04-20 18:02 toughcactus 阅读(28) 评论(0) 推荐(0) 编辑

mac关闭程序开机启动(Redirect)

摘要: 系统偏好设置->用户与群组->登录项 对于耍流氓的软件是没有用的。这一点Windows胜。 阅读全文

posted @ 2022-04-20 18:00 toughcactus 阅读(144) 评论(0) 推荐(0) 编辑

git bash换行设置(Redirect)

摘要: Uinx/Linux采用换行符LF表示下一行(LF:Line Feed,中文意思是换行);"\r\n" Dos和Windows采用回车+换行CRLF表示下一行(CRLF:Carriage Return Line Feed,中文意思是回车换行);"\r" Mac OS采用回车CR表示下一行(CR:Ca 阅读全文

posted @ 2022-04-20 17:57 toughcactus 阅读(896) 评论(0) 推荐(0) 编辑

mac装机(Redirect)

摘要: 因为重装了系统,所以记录下安装的软件。 【emacs】 【homebrew】 1.brew install和brew cask install的区别 https://zhuanlan.zhihu.com/p/138059447 brew install是本地编译安装,cask是直接安装应用包。 后者 阅读全文

posted @ 2022-04-20 17:01 toughcactus 阅读(35) 评论(0) 推荐(0) 编辑

取消环境变量(Redirect)

摘要: # 查看环境变量 env | grep -i proxy # 取消环境变量 unset http_proxy unset https_proxy 阅读全文

posted @ 2022-04-20 16:56 toughcactus 阅读(80) 评论(0) 推荐(0) 编辑

centos初用(Redirect)

摘要: 大学的时候,实验室的老师用redhat,刷题的同学用ubuntu,爱漂亮的我用fedora…… 工作的时候,大家都用ubuntu…… 现在的电脑16G,开4台虚拟机的话,上级建议用centos。 而我查资料想找ubuntu的时候,经常找到用centos的…… 几个开源项目照着官方说明来的时候,也是常 阅读全文

posted @ 2022-04-20 16:53 toughcactus 阅读(64) 评论(0) 推荐(0) 编辑

frr安装及ospf组网[后续还需补充](Redirect)

摘要: [frr] -[frr代码,stable有的指令没有,6.0 vs 7.0] git clone https://github.com/frrouting/frr.git git clone -b stable/7.1 https://github.com/frrouting/frr.git -[官 阅读全文

posted @ 2022-04-20 16:48 toughcactus 阅读(739) 评论(0) 推荐(0) 编辑

VPP build[unfinished](Redirect)

摘要: 本机当前用户生成密钥ssh-keygen 显示密钥字符串cat ~/.ssh/id_rsa.pub 拷贝到用户SSH Key https://fd.io/docs/vpp/master/gettingstarted/developers/building.html 当前已有版本vpp编译 sudo 阅读全文

posted @ 2022-04-20 16:46 toughcactus 阅读(37) 评论(0) 推荐(0) 编辑

802.1D GMRP(Redirect)

摘要: 这两天 在 看 GMRP,速度 超级 慢。 我在想,别人 把 这个 东西 写出来 得 花 多长 时间, 我母语 还是 中文,这 为什么 就 非得是 一件 很 简单 的事情。 代沟呀 。 我英语 就 那样,应试教育 的 产物,我 这种 玩玩打打 的 态度, 现在 这个 样子 ,就是 老天 保佑。 看 阅读全文

posted @ 2022-04-20 16:44 toughcactus 阅读(53) 评论(0) 推荐(0) 编辑

vim命令(Redirect)

摘要: :%s/a/b/gc 把全文的a替换为b,每次替换前需确认。 阅读全文

posted @ 2022-04-20 16:41 toughcactus 阅读(25) 评论(0) 推荐(0) 编辑

DHCP(Redirect)

摘要: DHCP DHCP RFC 1531 --> RFC 1541 --> RFC 2131 obsoleted RFC 2131 --> RFC 3396 updated RFC1531 "Dynamic Host Configuration Protocol" October 1993, obsol 阅读全文

posted @ 2022-04-20 10:13 toughcactus 阅读(35) 评论(0) 推荐(0) 编辑