Skip to content

Instantly share code, notes, and snippets.

View YimingYAN's full-sized avatar

Yiming Yan YimingYAN

  • United Kingdom
View GitHub Profile
@YimingYAN
YimingYAN / homebrew-opencv2-python
Last active January 28, 2017 15:11 — forked from blue-ice/homebrew-opencv2-python
Using Homebrew to install OpenCV2 for Python on Mac
Assuming that you have already installed ```brew``` and that you are logged into a non-root administrator account:
1. ```brew tap homebrew/science```
2. ```brew install opencv```
3. ```sudo su```
4. ```echo "/usr/local/lib/python2.7/site-packages/" > /Library/Python/2.7/site-packages/opencv.pth```
If you are using virtualenv
4. ```echo "/usr/local/lib/python2.7/site-packages/" > /path/to/virtualenv/lib/python2.7/site-packages/opencv.pth```

find -type f -name "*."

@YimingYAN
YimingYAN / Matplotlib.InstallFromGithubSrc
Created December 4, 2016 10:26
Install Matplotlib Beta from the source
```
```
    FOLDER_PATH=</path/to/your/folder>
    QMAKE_POST_LINK += $(MKDIR) $$quote($$FOLDER_PATH) $$escape_expand(\\n\\t)
@YimingYAN
YimingYAN / SSH.AddToRemote.md
Last active November 27, 2016 14:14
Add SSH key to remote linux server
@YimingYAN
YimingYAN / Wget.downloadPDF.md
Created November 27, 2016 02:33
wget downloadd all pdf files from a wenpage

To filter for specific file extensions:

wget -A pdf -m -p -E -k -K -np http://site/path/
@YimingYAN
YimingYAN / SSH.GenerateKey.md
Last active November 25, 2016 09:20
Generate SSH Keys
mkdir ~/.ssh
chmod 700 ~/.ssh
ssh-keygen -t rsa

Show public ssh key:

cat ~/.ssh/id_rsa.pub 
@YimingYAN
YimingYAN / Docker.stop.md
Created November 17, 2016 10:04
Stop all running docker containers:

Stop all running docker containers:

docker stop $(docker ps -a -q)
@YimingYAN
YimingYAN / Docker.Daemon.md
Last active December 4, 2016 09:46
Fix: Docker Daemon Failed to run

sudo usermod -aG docker

@YimingYAN
YimingYAN / Docker.build.md
Created November 16, 2016 11:26
Command to build docker

docker build -t .