取消 global
git config --global --unset user.name
git config --global --unset user.email
为每一个repo设置user.email
da
取消 global
git config --global --unset user.name
git config --global --unset user.email
为每一个repo设置user.email
da
| syntax on | |
| set nu! | |
| set tabstop=4 | |
| set encoding=utf-8 | |
| set fileencodings=iso-2022-jp,euc-jp,sjis,utf-8 | |
| set nocompatible " be iMproved, required | |
| filetype off " required |
| // XSS 对应 | |
| function escapeHtml(value) { | |
| if (typeof value !== 'string') { | |
| return value | |
| } | |
| return value.replace(/[&<>`"'\/]/g, function(result) { | |
| return { | |
| '&': '&', | |
| '<': '<', | |
| '>': '>', |
安装
$ brew install mongodb
创建数据库存储目录
$ sudo mkdir -p /data/owl
启动mongod(需要sudo)
install
$ wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-3.4.9.tgz
$ tar -zxvf mongodb-
$ sudo mv mongodb- /usr/local/mongodb
$ export PATH=/usr/local/mongodb/bin:$PATH
setup
| // 😎 JS闭包: 定义在函数内的子函数,子函数作为函数返回值返回。 | |
| // 效果:在函数外面通过子函数,可以访问函数的内部变量。 | |
| // 运行效果 http://runjs.cn/detail/mvhnvgsq | |
| function test1() { | |
| var name = "The Window"; | |
| var object = { | |
| name: "My Object", | |
| getNameFunc: function () { | |
| return function () { |
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash
$ . ~/.nvm/nvm.sh
$ nvm install nodeEPEL源
$ sudo rpm -Uvh http://www.gtlib.gatech.edu/pub/fedora-epel/6/i386/epel-release-6-8.noarch.rpm
Install
$ sudo yum -y install docker-io