介绍Harp


What

官网在此

nodejs写的静态web服务器,号称零配置。

牛B的地方在于可以直接解析markdown文件为html页面并提供出来访问,同时还能先预先编译受支持的文件为html文件并保存起来。

Read more ⟶

怎么用开源中国的服务来进行协作和开发


Getting Start

  1. 注册oschina用户(戳这里)
  2. 登录oschina.net
  3. 注册git@osc用户(戳这里),请选择使用oschina账号登录

注册Git@OSC

4.会提示以下画面,点击连接即可

连接到oschina.net

如果你是管理员

add team

此处略去500字。

Read more ⟶

导出js注释工具-JSDOC


what

官网在此 代码在此

install

sudo npm install -g git+https://github.com/jsdoc3/jsdoc.git

或者

npm install jsdoc@"<=3.3.0"

how

JSDoc会从/**开头的注释中抽取信息。

标签就是一些以@开头的命令,所有标签用法见这里

jsdoc where-is-js-files

访问当前目录下/out/index.html

使用docstrap美化界面

官网在此,下载地址戳这里

配置docstrap

修改文件docstrap/template/jsdoc.conf.json,文件在此:

Read more ⟶

Parallel介绍


What

FSF项目,GNU Parallel,翻译为平行

http://www.gnu.org/software/parallel/

Why

可以替代xargs

How

不仅可以在本机上平行处理任务,而且还能分散到其他联网电脑上处理。

###参数

Read more ⟶

使用cpufreq降低CPU功耗


##安装

sudo apt-get install cpufrequtils

##查看当前CPU状态

cpufreq-info

设置参数

-d  minimum frequency,
-u  maximum frequency,
-f  specific frequency (userspace governor must be set first) and
-g  governor (ondemand conservative userspace powersave powersave)
-c  specific CPU.

##设置为ondemand

Read more ⟶