摘要: template <typename T>struct a{ T * ptr; }; int main(){ a<int> b;} 编译器会展开为 template <typename T>struct a{ T * ptr; }; #ifdef INSIGHTS_USE_TEMPLATEtempl 阅读全文
posted @ 2020-12-22 14:45 you_magic 阅读(85) 评论(0) 推荐(0) 编辑
摘要: linux 提供了copy on write 的功能, cp 带上--reflink cp --reflink 失败的情况: cp --reflink=always几乎肯定能正常工作。如果不是,您将收到错误。按照设计,这是--reflink=always和--reflink=auto之间的区别。错误 阅读全文
posted @ 2020-01-07 22:27 you_magic 阅读(952) 评论(0) 推荐(0) 编辑
摘要: 1. sysbench --test=fileio --file-total-size=10G --file-test-mode=rndrw --time=300 --max-requests=0 run WARNING: the --test option is deprecated. You can pass a script name or path on the command line 阅读全文
posted @ 2019-11-25 17:52 you_magic 阅读(504) 评论(0) 推荐(0) 编辑
摘要: 切换npm 源 源地址 https://mirrors.huaweicloud.com/repository/npm/ https://registry.npm.taobao.org 1. 命令 npm config set registry 源地址 2. 验证命令 npm config get r 阅读全文
posted @ 2019-11-18 16:30 you_magic 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Spent few days chasing down this issue, and it might potentially cause a lot of pain to TensorFlow users. All TensorFlow operators implemented in C++ 阅读全文
posted @ 2019-11-17 19:54 you_magic 阅读(370) 评论(0) 推荐(0) 编辑
摘要: yum install -y gnutls-utils 阅读全文
posted @ 2019-10-08 22:00 you_magic 阅读(1634) 评论(2) 推荐(0) 编辑
摘要: 1. 备份原来的源 2. 拉取 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 或者 curl -o /etc/yum.repos.d/CentOS-Base.repo ht 阅读全文
posted @ 2019-09-30 10:50 you_magic 阅读(3590) 评论(0) 推荐(0) 编辑
摘要: ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ 阅读全文
posted @ 2019-09-25 18:50 you_magic 阅读(178) 评论(0) 推荐(0) 编辑
摘要: int getgrnam_r(const char *name, struct group *grp, char *buf, size_t buflen, struct group **result); 的bufsize 应该多大? struct group { char *gr_name; /* 阅读全文
posted @ 2019-09-23 16:08 you_magic 阅读(433) 评论(0) 推荐(0) 编辑
摘要: git push/pull origin 本地分支:远端希望创建的分支 本地远程分支名相同时,可以省略 git pull/push origin 分支名 origin: git为你默认创建了一个指向远端代码库的origin git remote -v 阅读全文
posted @ 2019-09-12 08:56 you_magic 阅读(930) 评论(0) 推荐(0) 编辑