This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import cv2 | |
| import matplotlib.pyplot as plt | |
| def imshow(img): | |
| if (len(img.shape) == 2) : | |
| plt.imshow(img) | |
| plt.show() | |
| return | |
| b,g,r = cv2.split(img) | |
| img_rgb = cv2.merge([r,g,b]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <p><iframe src="//player.bilibili.com/player.html?aid=84267566&cid=145147963&page=1" frameborder="no" scrolling="no" width="95%" height="600"></iframe></p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| server_name cdn.licsber.site; | |
| charset utf-8; | |
| location / { | |
| root /opt/lampp/htdocs/kod/data/Group/public/home/share; | |
| autoindex on; | |
| autoindex_exact_size off; | |
| autoindex_localtime on; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DocumentRoot "/opt/lampp/htdocs" | |
| <Directory "/opt/lampp/htdocs"> | |
| # | |
| # Possible values for the Options directive are "None", "All", | |
| # or any combination of: | |
| # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews | |
| # | |
| # Note that "MultiViews" must be named *explicitly* --- "Options All" | |
| # doesn't give it to you. | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dd if=/dev/zero of=/root/swapfile bs=1M count=1024 | |
| mkswap /root/swapfile | |
| swapon /root/swapfile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| server_name notebook.licsber.site; | |
| location / { | |
| proxy_pass http://127.0.0.1:8888/; | |
| proxy_set_header Host $http_host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| proxy_http_version 1.1; | |
| proxy_set_header Upgrade $http_upgrade; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git reset --hard HEAD^ | |
| git push origin master -f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tmutil listlocalsnapshotdates / |grep 20|while read f; do tmutil deletelocalsnapshots $f; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| dirs = [] | |
| files = [] | |
| def walk(file): | |
| if os.path.isdir(file): | |
| dirs.append(file) | |
| for f in os.listdir(file): | |
| walk(file + '/' + f) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git filter-branch -f --prune-empty --index-filter "git rm -rf --cached --ignore-unmatch filename" --tag-name-filter cat -- --all |
OlderNewer