Skip to content

Commit

Permalink
ADD: rest part.
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesBonddu committed Dec 7, 2019
1 parent 97cea2e commit 6a5dfc7
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 0 deletions.
9 changes: 9 additions & 0 deletions DevOps/CD/BDD.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# BDD


http://insights.thoughtworkers.org/bdd/

https://documenter.getpostman.com/view/220187/postman-bdd-examples/6Z3uY71?version=latest#a55a0b92-de2e-74d6-a03d-d87278c36de8


https://liqiang.io/post/use-json-schema-with-pytho
6 changes: 6 additions & 0 deletions 安全技能树/常见姿势/中间人攻击.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,9 @@ https://blog.wolfogre.com/posts/usage-of-mitmproxy/
https://www.freebuf.com/sectool/76361.html

https://2qwesgdhjuiytyrjhtgdbf.readthedocs.io/en/latest/scripting/mitmproxy.html#examples-stickycookies

https://discourse.mitmproxy.org/t/adapting-requests-to-include-anti-csrf-tokens/974

https://webstersprodigy.net/2013/05/24/cookie-tossing-in-the-middle/

https://code.djangoproject.com/wiki/CsrfProtection#Sessionindependentnonce
9 changes: 9 additions & 0 deletions 常用命令/系统常用命令/常用工具命令.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,12 @@ db.getCollection('info').find({"astats.kk_executer.report.network.http": {"$exis
## ubuntu open file browser

nautilus --browser fpath

## what-is-this-folder-run-user-1000

https://unix.stackexchange.com/questions/162900/what-is-this-folder-run-user-1000

## bash-cannot-create-temp-file-for-here
chmod a+rwxt /tmp

https://unix.stackexchange.com/questions/277387/tab-completion-errors-bash-cannot-create-temp-file-for-here-document-no-space
4 changes: 4 additions & 0 deletions 数据库/mongodb/mongodb.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ https://stackoverflow.com/questions/11255630/how-to-export-all-collections-in-mo

https://docs.mongodb.com/manual/reference/program/mongoexport/

导入
mongorestore -d db_name /path/

https://stackoverflow.com/questions/6770498/how-to-import-bson-file-format-on-mongodb

mongoexport --collection bigfile --db bdp_backup --out ~/bigfile.json

Expand Down
21 changes: 21 additions & 0 deletions 编程语言/Python/Django/Django-REST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Django REST


## adstract class

https://stackoverflow.com/questions/33137165/django-rest-framework-abstract-class-serializer

参考:

https://www.django-rest-framework.org/api-guide/fields/#using-source


https://stackoverflow.com/questions/33137165/django-rest-framework-abstract-class-serializer

https://stackoverflow.com/questions/24048595/django-rest-framework-multitable-model-inheritance-modelserializers-and-nested

https://blog.auberginesolutions.com/blog/decide-serializer-class-dynamically-based-on-viewset-actions-in-django-rest-framework-drf/

https://www.thebookofjoel.com/django-rest-framework-dynamic-fields

https://juejin.im/post/5a68934551882573443cddf8
11 changes: 11 additions & 0 deletions 编程语言/Python/Django/django.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,14 @@ https://www.cnblogs.com/zhumengke/articles/11106179.html
## Django ORM调优

https://ewp.gma.mybluehost.me/2018/11/04/django-orm-optimization-tips/


## exclude some field from values

https://stackoverflow.com/questions/16854659/exclude-field-from-values-or-values-list

## django csrf bypass

https://blog.knownsec.com/2016/10/django-csrf-bypass_cve-2016-7401/
https://strcpy.me/index.php/archives/753/
https://www.leavesongs.com/HTML/zhihu-xss-worm.html

0 comments on commit 6a5dfc7

Please sign in to comment.