2016-06-26 ruki
xmake provides some project templates, you can easily create an empty project. Create a c++ console project: bash xmake create -l c++ -t 1 demo or xmake create --language=c++ --template=1 demo Create a c static library project: bash xmake create -l c -t 5 demo or xmake create --language=c 继续阅读 »
2017-10-27 Catsugar
这是一个不靠谱的学习笔记。想到啥写啥 grunt 自动化工具 安装 grunt ``` bash install grunt npm install -g grunt-cli ``` ``` bash 安装工具 npm install load-grunt-tasks --save-dev npm install time-grunt --save-dev 继续阅读 »
2017-09-01 geekspeng
安装 Hexo bash $ npm install -g hexo-cli 建站 安装 Hexo 完成后,请执行下列命令,Hexo 将会在指定文件夹中新建所需要的文件。 bash $ hexo init $ cd $ npm install 继续阅读 »
2016-07-23 ruki
xmake 提供了一些内置的条件判断api,用于在选择性编译时,获取到一些工程状态的相关信息,来调整编译逻辑。。 例如:is_os, is_plat, is_arch, is_kind, is_mode, is_option is_mode 我们先拿最常用的is_mode来讲讲如何使用,这个api主要用来判断当前的编译模式,例如平常编译配置的时候,会执行: bash $ xmake f -m debug $ xmake 来编译debug版本,那么模式就是debug,那么release版本,也就是release了 bash $ xmake f -m release $ xmake 但是如果仅仅只是这么配置,xmake 继续阅读 »
2016-03-24 craneyuan
安装多说评论系统 实际上landscape-plus主题上已经集成了多说评论系统,我们只需要添加duoshuo_shortname到两个配置文件就行了。 多说的shortname就是你注册多说时的用户名。 接下来在博客根目录下的配置文件和主题下的配置文件_config.yml中加入如下代码: ```bash Duoshuo duoshuo_shortname: XXX ``` 添加多说最近评论 以landscape-plus主题为例: more 在landscape-plus\layout_widget\目录下新建recent_comments.ejs文件,内容如下: bash 注:其 继续阅读 »
2019-01-26 blademainer
Kubernetes笔记 more 导出现有的资源 bash for n in $(kubectl get -o=name pvc,configmap,serviceaccount,secret,ingress,service,deployment,statefulset,hpa,job,cronjob) do mkdir -p $(dirname $n) kubectl get -o=yaml --export $n > $n.yaml done 热更新deploy 有时候我们修改了ConfigMap,但是代码不支持,肯定不能让程序停止,因此必须支持热更新。命令如下: bash kubectl patch 继续阅读 »
2016-05-28 ALEX LIN
安装Node.js ``` Using Ubuntu curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get install -y nodejs Using Debian, as root curl -sL https://deb.nodesource.com/setup_6.x | bash - apt-get install -y nodejs ``` 继续阅读 »
2017-10-19 Quanyin Tang
Git
创建库 克隆一个已存在的库 bash $ git clone https://github.com/user/repo.git [DirName] 或者 $ git clone git@github.com:user/repo.git [DirName] 其中,user为用户名,repo为需要克隆的库名,DirName为可选,默认值为库的名称repo 新建本地库 bash $ git init 继续阅读 »
2016-10-28 ruki
Introduction Benchbox is a benchmark testing utilities based on xmake and tbox. Build Please install xmake first: xmake bash $ xmake The Coroutine Switch Reports (2 Coroutines) Run bash $ xmake coroutine -n switch Macosx (x86_64) tbox: 10000000 switches in 205 ms, 48780487 switches per sec 继续阅读 »
2016-03-24 craneyuan
配置主题landscape-plus 首先切换到博客根目录下,使用如下命令安装landscap-plus: bash git clone https://github.com/xiangming/landscape-plus.git themes/landscape-plus 然后修改根目录下的配置文件_config.yml, 把theme选项的值设置为:landscape-plus。 more 配置主题目录下的配置文件_config.yml, 把menu菜单项中的各选项配置为自己喜欢的样式,比如把英文的菜单改为中文的。 bash menu: 首页: / 文章列表: /archives 关于: /about 继续阅读 »