$ lscpu
$ top
按1会显示所有cpu信息
$ htop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# proxy | |
alias goproxy="export all_proxy=socks5://127.0.0.1:1080; export http_proxy=socks5://127.0.0.1:1080; export https_proxy=socks5://127.0.0.1:1080; export no_proxy=127.0.0.1" | |
alias noproxy="unset all_proxy http_proxy https_proxy no_proxy" | |
# git | |
alias g='git' | |
alias ga='git add' | |
alias gaa='git add --all' | |
alias gapa='git add --patch' |
$ vagrant ssh -- -R 1080:localhost:1080
This follows the ssh option syntax -R [bind_address:]port:host:hostport
, where the first number is the port number to listen on inside the guest machine, and the last two are the service address as visible from the host machine
# Clone rbenv into ~/.rbenv
$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv
# Optionally, try to compile dynamic bash extension to speed up rbenv. Don't worry if it fails; rbenv will still work normally
$ cd ~/.rbenv && src/configure && make -C src
# Add ~/.rbenv/bin to your $PATH
$ vim /etc/nginx/mime.types
application/x-ns-proxy-autoconfig pac;
application/x-ns-proxy-autoconfig dat;
application/x-ns-proxy-autoconfig da;
$ cd /usr/share/nginx/html
$ ln -s autoproxy.pac wpad.dat
$ ln -s autoproxy.pac wpad.da
$ mkdir ~/chef-repo
- Chef server acts as a central repository for your cookbooks as well as for information about every node it manages.
- You author Chef cookbooks and administer the Chef server from your workstation.
- The
knife
command enables you to communicate with the Chef server from your workstation.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.network "private_network", ip: "192.168.1.10" | |
config.vm.network "private_network", type: "dhcp", name: "VirtualBox Host-Only Ethernet Adapter" |
- 从下面两个地址选一个下载vim x64的zip包
-
创建文件夹
C:\Program Files\Vim\vimxx
(xx为vim版本,如8.1版本就是vim81),将解压的文件复制到该文件夹 -
使用管理员运行cmd命令,进入该目录,执行install.exe命令。
-
如果鼠标右键没有"Edit with Vim"菜单,检查
C:\Program Files\Vim\vimxx
目录下是否有GvimExt
文件夹,将其重命名为GvimExt64
,然后重新执行第3步操作。