Skip to content

Instantly share code, notes, and snippets.

View MonsterRob's full-sized avatar
👻
I WANT YOU

MonsterRob

👻
I WANT YOU
View GitHub Profile
a
abandon
ability
able
abortion
about
above
abroad
absence
absolute
AIDS
AM
African
American
Antarctica
Arab
Arctic
Asian
Bible
British

通用API接口文档示例

模块示例(xxx 模块)(必选)

请求方法与路径示例:GET /user/list :请求说明 (必选)

Nignx 配置文件格式为 .conf
内容的基本元素为directive(即指令)
directive 格式: <name> [para1,[para2,[para3]]] ...;
directive 以分号结尾
多个directive 可以组成block ,block 格式为 <block name> <para> {directives}
block允许嵌套组成context
总共分为四个层级的context: main http server location
nginx -t 检查配置文件内容格式是否书写正确
数据库学习网站:
https://www.cs.uct.ac.za/mit_notes/database/htmls/chp01.html
上传工具:twine
安装:pip install twine
项目更目录建立setup.py文件(最低要求)
setup.cfg setup 可选参数文件
README.md/README.rst 项目介绍文件
MANIFEST.in 数据文件清单(非代码)
LICENSE.txt 授权文件
<your package>
项目结构如下:
硬件:
物质基础
物理
有形
软件:
抽象
状态、动作记录、规则
概念:实体的对应
Bash: a command line interface for interacting with the operating system.
interactive mode
execution and feedback
Bash shell script
commands
functions loops conditional constructs
Bash programming language
system administration tasks:disk backups, evaluating system logs,installation scripts
echo 'msg'
Celery 最佳实践
1 尽量不使用数据库作为broker,建议使用RabbitMQ
2 使用多个队列
3 定义具有优先级的worker
4 使用celery的错误处理机制
5 使用flower 监控
6 只有真正需要时再追踪result
7 调用task时不用传入ORM对象
8 尽量简化task
9 设置task超时
Web应用系统性能测试
1 确定测试需求
基于在线用户的性能测试需求
基于吞吐量的性能测试需求
...
2 开发性能测试脚本
3 建立性能测试负载模型
4 执行性能测试
5 生成性能测试报告