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
修改内存 | |
Help->Find Action->(type "VM Options")->(Click)"Edit Custom VM Options" | |
去掉inspection 格式检查 | |
setting-->Inspections-->Python-->PEP8 | |
修改换行 | |
Editor | Code Style - Line separator | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>test</title> | |
<link rel="stylesheet" type="text/css" href="mystyle.css"> | |
<style type="text/css"> | |
body {background-color: red} | |
p {margin-left: 20px} | |
</style> |
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 datetime | |
datetime.datetime.now() | |
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
for i in range(0, 100, 2): | |
print i | |
# 0, 2, 4, ... 98 |
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
netstat -tunpl | grep 3306 | |
netstat -nap | grep 8000 | |
netstat -nal | grep 8000 | |
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 importlib | |
importlib.reload(some_module) | |
reload() 只能接模块对象,如果要接'str', 需要先 import_module() | |
包下可以是模块;也可以是__init__里import进来的对象。 | |
如果是from xxx import A,要热加载A,必须热加载xxx。 | |
如何根据A找到xxx? |
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
docker pull swaggerapi/swagger-editor | |
docker run -d -p 8080:8080 swaggerapi/swagger-editor | |
docker pull mermade/openapi-gui | |
docker run --name openapi-gui -p 8080:3000 -d mermade/openapi-gui |
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
RPBLK4D08G-eyJsaWNlbnNlSWQiOiJSUEJMSzREMDhHIiwibGljZW5zZWVOYW1lIjoi5o6I5p2D5Luj55CG5ZWGIGh0dHA6Ly9pZGVhLmhrLmNuIiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vuc2VSZXN0cmljdGlvbiI6IiIsImNoZWNrQ29uY3VycmVudFVzZSI6ZmFsc2UsInByb2R1Y3RzIjpbeyJjb2RlIjoiSUkiLCJmYWxsYmFja0RhdGUiOiIyMDE5LTA1LTA1IiwicGFpZFVwVG8iOiIyMDIwLTA1LTA0In0seyJjb2RlIjoiQUMiLCJmYWxsYmFja0RhdGUiOiIyMDE5LTA1LTA1IiwicGFpZFVwVG8iOiIyMDIwLTA1LTA0In0seyJjb2RlIjoiRFBOIiwiZmFsbGJhY2tEYXRlIjoiMjAxOS0wNS0wNSIsInBhaWRVcFRvIjoiMjAyMC0wNS0wNCJ9LHsiY29kZSI6IlBTIiwiZmFsbGJhY2tEYXRlIjoiMjAxOS0wNS0wNSIsInBhaWRVcFRvIjoiMjAyMC0wNS0wNCJ9LHsiY29kZSI6IkdPIiwiZmFsbGJhY2tEYXRlIjoiMjAxOS0wNS0wNSIsInBhaWRVcFRvIjoiMjAyMC0wNS0wNCJ9LHsiY29kZSI6IkRNIiwiZmFsbGJhY2tEYXRlIjoiMjAxOS0wNS0wNSIsInBhaWRVcFRvIjoiMjAyMC0wNS0wNCJ9LHsiY29kZSI6IkNMIiwiZmFsbGJhY2tEYXRlIjoiMjAxOS0wNS0wNSIsInBhaWRVcFRvIjoiMjAyMC0wNS0wNCJ9LHsiY29kZSI6IlJTMCIsImZhbGxiYWNrRGF0ZSI6IjIwMTktMDUtMDUiLCJwYWlkVXBUbyI6IjIwMjAtMDUtMDQifSx7ImNvZGUiOiJSQyIsImZhbGxiYWNrRGF0ZSI6IjIwMTktMDUtMDUiLCJwYWlkVXBUbyI6 |
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
docker run -d -p 3128:3128 minimum2scp/squid | |
export http_proxy=http://127.0.0.1:3128 | |
curl http://example.com/ |
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
# 替换 | |
${string/substring/replacement} | |
${string//substring/replacement} | |
# 提取子串 | |
${string:position:length} | |
# 删除 | |
${string#substring} |