zsh及必备plugin安装

■ 安装zsh

查看官方git

via curl

1
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

xargs count file lines

含空行注释

1
2
find . -name "*.java"|xargs wc -l|grep "total"|awk '{print $1}'  
find . -name "*.java"|xargs cat|wc -l #Output:37634

nginx serve static html for root and proxy everything else

use the error_page 404 to redirect the traffic

no submodule mapping found in .gitmodules

remove cache

1
git rm --cached modulepath

pack file command

zip

pack file

1
zip test.zip test.txt

Curl argument list is too long error

cut --data-binary to a file

1
cat args.txt | curl -d @-

curl output to a file

CURL获取内容并保存到文件

使用-o参数来指定输出的文件

1
curl localhost -o save.txt

ssh config file

快速配置ssh config,从此无痛快速连接服务器

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules

1
sudo chown R $USER /usr/local
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×