Linux
查看wget的进程:ps -aux | grep wget
杀死进程:kill pid
wget -c
tar -zxvf ...tar.gz
netstat -ntlp | grep 80 查看端口占用情况
nginx
rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
yum install nginx
service nginx start
service nginx restart
/usr/sbin/nginx -s reload 重启
/usr/sbin/nginx -t 测试配置文件是否正常
systemctl start nginx.service
systemctl enable nginx.service
systemctl stop firewalld.service
systemctl disable firewalld.service #开机关闭
tomcat
wget http://apache.website-solution.net/tomcat/tomcat-8/v8.5.37/bin/apache-tomcat-8.5.37.tar.gz
/usr/local/tomcat/tomcat/bin/startup.sh 开启服务
/usr/local/tomcat/tomcat/bin/startup.sh 关闭服务
npm
yum install epel-release
yum install nodejs
更新node
npm install -g n
n latest
更新npm
npm -g install npm@next
删除npm
yum remove nodejs npm -y
npm list -g --depth=0
npm install
yarn add
yarn start
conda
conda info --envs
conda create -n your_env_name python=X.X
conda remove -n your_env_name(虚拟环境名称) --all
conda config --remove-key channels(换回默认源)
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes(换清华源)
docker
docker pull
docker run ...
docker stop
docker images
docker ps
docker ps -a
docker rmi
docker rm
docker exec -it name... /bin/bash
Git
yum install -y git
git clone https://github.com/CloserWU/Interstellar_Document.git
//git init
git add .
git commit -m "..."
//git remote add origin git@github.com:CloserWU/Interstellar_Document.git
//git pull (如果这个repo非空的话)
git push -u origin master
opencv
cmake -D WITH_TBB=ON \
-D BUILD_NEW_PYTHON_SUPPORT=ON \
-D CMAKE_INSTALL_PREFIX=/home/wushuai/opencv \
-D WITH_V4L=ON \
-D WITH_OPENGL=ON \
-D WITH_VTK=ON .. \
-D CMAKE_BUILD_TYPE=RELEASE \
-D OPENCV_EXTRA_MODULES_PATH=/home/wushuai/opencv-3.2.0/opencv_contrib/modules \
-D WITH_IPP=OFF \
-D WITH_CUDA=ON \
-D WITH_CUBLAS=ON \
-D CUDA_FAST_MATH=ON \
-D WITH_CUFFT=ON \
-D WITH_NVCUVID=ON \
-D WITH_FFMPEG=ON \
-D PYTHON_DEFAULT_EXECUTABLE=$(which python3) \
-D BUILD_opencv_python3=ON \
-D BUILD_opencv_python2=OFF \
-D PYTHON3_PACKAGES_PATH=/home/wushuai/anaconda3/lib/python3.7/site-packages \
-D PYTHON3_EXCUTABLE=/home/wushuai/anaconda3/bin/python3.7m \
-D PYTHON3_INCLUDE_DIR=/home/wushuai/anaconda3/include/python3.7m \
-D PYTHON3_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.7m.so.1 \
-D PYTHON3_NUMPY_PATH=/home/wushuai/anaconda3/lib/python3.7/site-packages \
-D BUILD_EXAMPLES=ON \
-D BUILD_LIBPROTOBUF_FROM_SOURCES=ON \
-D BUILD_opencv_hdf=OFF \
..
md语法高亮的语言
AppleScript
applescript
ActionScript 3.0
actionscript3, as3
Shell
bash, shell
ColdFusion
coldfusion, cf
C
cpp, c
C#
c#, c-sharp, csharp
CSS
css
Delphi
delphi, pascal, pas
diff&patch
diff patch
Erlang
erl, erlang
Groovy
groovy
Java
java
JavaFX
jfx, javafx
JavaScript
js, jscript, javascript
Perl
perl, pl, Perl
PHP
php
text
text, plain
Python
py, python
Ruby
ruby, rails, ror, rb
SASS&SCSS
sass, scss
Scala
scala
SQL
sql
Visual Basic
vb, vbnet
XML
xml, xhtml, xslt, html
Objective C
objc, obj-c
F#
f#, f-sharp, fsharp
R
r, s, splus
matlab
matlab
swift
swift
GO
go, golang