使用工具: pyamsoft/pstate-frequency
example :
# set max cpu freq to 60%
sudo pstate-frequency -d -S -m 60
使用工具: pyamsoft/pstate-frequency
example :
# set max cpu freq to 60%
sudo pstate-frequency -d -S -m 60
当前分支上, 本地已经有多个 commit 了. 此时想将这些零散的 commit 合并成一个.
context menu -> git -> repository -> rebase
勾选 interactive
onto 选定的是 remote 上对应当前本地分支的分支. 如 refs/remotes/origin/master
from 什么都不选
'use strict'; | |
var koa = require('koa'); | |
var bodyParse = require('koa-bodyparser'); | |
var app = new koa(); | |
app.use(function *(next) { | |
let bodyData = []; | |
this.req.on('data', (chunk) => { |
/** | |
* SMS services. | |
*/ | |
"use strict"; | |
const http = require("http"); | |
const URL = require("url"); | |
#!/usr/bin/env bash | |
ProjectName="sundries" # 项目名称 | |
Port=3030 # 服务监听端口 , 通过设置 NODE_PORT 环境变量实现 | |
CleanNodeModules=true # 是否每次都清除 node_modules | |
NodeVersion=8.1.2 # node 版本, 需确保 nvm 有该版本 | |
Restart=true # 是否每次都重启服务 | |
if [[ -e $1 ]]; then |
用户管理: