Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
/** | |
* 获取url参数值 | |
* @param {string} url 需要获取参数的url | |
* @param {string} name 需要获取的参数名 | |
* @return {string} 返回获取的参数名 | |
*/ | |
var getUrlParam = function(name, url){ | |
if(!name){ | |
return ''; | |
} |
version: '2' | |
services: | |
mongo1: | |
container_name: mongo1 | |
image: daocloud.io/mongo | |
ports: | |
- 27017:27017 | |
expose: | |
- 27017 | |
networks: |
var crypto = require("crypto") | |
function encrypt(key, data) { | |
var cipher = crypto.createCipher('aes-256-cbc', key); | |
var crypted = cipher.update(text, 'utf-8', 'hex'); | |
crypted += cipher.final('hex'); | |
return crypted; | |
} |
#add 'node_modules' to .gitignore file | |
git rm -r --cached node_modules | |
git commit -m 'Remove the now ignored directory node_modules' | |
git push origin master |