Skip to content

Instantly share code, notes, and snippets.

@sharpdeep
sharpdeep / gist:781326057f5340f05ae673ce253af182
Last active August 1, 2016 02:54
host,domain,website name and url
以http://mail.163.com/index.html为例
http : 协议
mail : 主机名(服务器名),host,代表是一个邮件服务器,www是一个万维网服务器
163.com : 域名
mail.163.com : 网站名,website name
http://mail.163.com/index.html : url
注意,www.163.com不是一个域名,163.com才是一个域名
1. download file in https://robomongo.org/download
2. unzip the file to `/opt`: `tar -zxvf robomongo-0.9.0-rc7-linux-x86_64-2b7a8ca.tar.gz`
3. cd to `/opt/robomongo-0.9.0-rc7-linux-x86_64-2b7a8ca/bin`, execute `robomongo`
4. create a new alias in ZSH: `alias robomongo='/opt/robomongo-0.9.0-rc7-linux-x86_64-2b7a8ca/bin/robomongo'`
#create a new alias
alias gz='tar -zxvf'
#remove a alias
unalias gz
@sharpdeep
sharpdeep / git_toturial
Last active August 26, 2015 02:25 — forked from guweigang/git_toturial
git命令大全
git init # 初始化本地git仓库(创建新仓库)
git config --global user.name "xxx" # 配置用户名
git config --global user.email "xxx@xxx.com" # 配置邮件
git config --global color.ui true # git status等命令自动着色
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global --unset http.proxy # remove proxy configuration on git
git clone git+ssh://git@192.168.53.168/VT.git # clone远程仓库