scrapy shell https://example.com/
scrapy crawl spider_name
scrapy crawl dapps -o data/07-07-dapps.csv
scrapy crawl dapps -t csv -o - >"data/dapp/$DATE-dapp.csv"
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
vim +PluginInstall +qall |
// Place your key bindings in this file to override the defaultsauto[] | |
[ | |
{ | |
"key": "right", | |
"command": "-extension.vim_right", | |
"when": "editorTextFocus && vim.active && !inDebugRepl" | |
}, | |
{ | |
"key": "shift+backspace", | |
"command": "-extension.vim_shift+backspace", |
dd1 <- c(21000, 23400, 26800) | |
dd2 <- c(29002, 10000, 70000) | |
library(viridis) | |
library(effsize) | |
library(sm) | |
library(magicaxis) | |
library(beanplot) |
Difference between system call and C
df -H
scp your_username@remotehost.edu:foobar.txt /local/dir
rsync -avz -e 'ssh' foobar.txt your_username@remotehost.edu:somewhere
find . -maxdepth 1 -regex './[a-z0-9]*' | xargs rm -rf
find . -type f
xargs
is the command that "converts" its standard input into arguments of another program, or, as they more accurately put it on the man page\wc -l -w [file]
As configured in my dotfiles.
start new:
tmux
start new with session name:
git rm -r --cached .
git add .
git commit -m ".gitignore fix"
reference: http://www.codeblocq.com/2016/01/Untrack-files-already-added-to-git-repository-based-on-gitignore/
# Print iterations progress | |
def printProgressBar (iteration, total, prefix = '', suffix = '', decimals = 1, length = 100, fill = '█'): | |
""" | |
Call in a loop to create terminal progress bar | |
@params: | |
iteration - Required : current iteration (Int) | |
total - Required : total iterations (Int) | |
prefix - Optional : prefix string (Str) | |
suffix - Optional : suffix string (Str) | |
decimals - Optional : positive number of decimals in percent complete (Int) |
作者:硕鼠酱 链接:https://www.zhihu.com/question/33977252/answer/157448123 来源:知乎 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。