Mock Receive Counts

my_mock.should_receive(:sym).once
my_mock.should_receive(:sym).twice
my_mock.should_receive(:sym).exactly(n).times
my_mock.should_receive(:sym).at_least(:once)
my_mock.should_receive(:sym).at_least(:twice)
my_mock.should_receive(:sym).at_least(n).times
my_mock.should_receive(:sym).at_most(:once)
my_mock.should_receive(:sym).at_most(:twice)
my_mock.should_receive(:sym).at_most(n).times
my_mock.should_receive(:sym).any_number_of_times

ubuntu 映射远程目录

sshfs 用户名@远程服务器名:远程目录 映射至本地的目录

vim 快捷键

光标控制命令

命令 光标移动
h或^h 向左移一个字符
j或^j或^n 向下移一行
k或^p 向上移一行
l或空格 向右移一个字符
G 移到文件的最后一行
nG 移到文件的第n行
w 移到下一个字的开头
W 移到下一个字的开头,忽略标点符号
b 移到前一个字的开头
B 移到前一个字的开头,忽略标点符号

git fetch origin

可以运行 git fetch origin 来同步远程服务器上的数据到本地。

那么用 git pull 不是也可以吗?区别是啥?

git 与 subversion分支

subversion合并分支消耗太大。然而在 Git 中,一天之内建立、使用、合并再删除多个分支是常见的事。

nginx 405 Not Allowed

nginx 405 Not Allowed
这个错误的原因是:Apache、IIS、Nginx等绝大多数web服务器,都不允许静态文件响应POST请求,否则会返回“HTTP/1.1 405 Method not allowed”错误。

happy birthday to leader

领导生日,祝生日快乐~!

ubuntu 查看用户所在组

id yourname

捞汁金针菇

捞汁金针菇

ubuntu 添加用户到指定组

sudo gpasswd -a <账号> <组名>
Powered by WordPress | Find Wireless Deals at BestInCellPhones.com. | Thanks to iCellPhoneDeals.com Free Cell Phones, Find Highest CD Rates and Incinerador De Grasa Revisión