src/result.html
20 | head src/result.html
21 |
--------------------------------------------------------------------------------
/dev/c/C学习脚印.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/c/C学习脚印.txt
--------------------------------------------------------------------------------
/dev/frontEnd/angularjs/django+DRF+AngularJS.txt:
--------------------------------------------------------------------------------
1 | django+DRF+AngularJS
2 | 2017/9/29
3 |
4 | 待完成
5 |
6 |
7 |
8 |
9 | 1、Getting Started with Django REST Framework (DRF) and AngularJS
10 | http://engineroom.trackmaven.com/blog/getting-started-drf-angularjs-part-1/
11 | http://engineroom.trackmaven.com/blog/getting-started-drf-angularjs-part-2/
12 | http://engineroom.trackmaven.com/blog/getting-started-drf-angularjs-part-3/
13 | http://engineroom.trackmaven.com/blog/getting-started-drf-angularjs-part-4/
14 | http://engineroom.trackmaven.com/blog/getting-started-drf-angularjs-part-5/
--------------------------------------------------------------------------------
/dev/frontEnd/bootstrap-treeview_exp/static/css/bootstrap-treeview.min.css:
--------------------------------------------------------------------------------
1 | .treeview .list-group-item{cursor:pointer}.treeview span.indent{margin-left:10px;margin-right:10px}.treeview span.icon{width:12px;margin-right:5px}.treeview .node-disabled{color:silver;cursor:not-allowed}
--------------------------------------------------------------------------------
/dev/frontEnd/css/css技巧小结.txt:
--------------------------------------------------------------------------------
1 | css技巧小结
2 | 2017/9/5
3 |
4 | 1、表格
5 |
6 | 单双行的颜色控制:
7 |
20 |
21 |
--------------------------------------------------------------------------------
/dev/frontEnd/http状态码.txt:
--------------------------------------------------------------------------------
1 |
2 | 【http状态码】
3 | 0状态码:
4 | 1 时间比较短,即表示用户刚刚要访问但临时改变主意,在服务器还没有响应的时候,主动断开请求
5 | 2 时间比较长,源站响应时间长
6 |
7 | 2xx(成功)
8 | 200(成功)服务器已成功处理了请求。
9 | 206(部分内容)服务器成功处理了部分 GET 请求。
10 | 3xx(已重定向)
11 | 301(永久移动)请求的网页已被永久移动到新位置。
12 | 302(临时移动)服务器目前正从不同位置的网页响应请求,但请求者应继续使用原来位置来进行以后的请求。
13 | 304(未修改)自从上次请求后,请求的网页未被修改过。服务器返回此响应时,不会返回网页内容。
14 | 4xx(请求错误)
15 | 401(未授权)请求要求进行身份验证。
16 | 403(已禁止)服务器拒绝请求。
17 | 404(未找到)服务器找不到请求的网页。
18 | 415(不支持的媒体类型)请求的格式不受请求页面的支持。
19 | 5xx(服务器错误)
20 | 500(服务器内部错误)服务器遇到错误,无法完成请求。
21 | 501(尚未实施)服务器不具备完成请求的功能。
22 | 502(错误网关)服务器作为网关或代理,从上游服务器收到了无效的响应。
23 | 503(服务不可用)目前无法使用服务器(由于超载或进行停机维护)。
24 | 504(网关超时)服务器作为网关或代理,未及时从上游服务器接收请求。
25 |
--------------------------------------------------------------------------------
/dev/frontEnd/lang/test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 503 Service Unavailable
5 | No server is available to handle this request.
6 |
7 |
如果您看到这个页面,说明您是中国人
8 |
9 |
10 |
如果您看到这个页面,说明您是歪果仁
11 |
12 |
13 |
14 |
17 |
18 |
29 |
30 |
--------------------------------------------------------------------------------
/dev/frontEnd/portal02/static/css/bootstrap-treeview.min.css:
--------------------------------------------------------------------------------
1 | .treeview .list-group-item{cursor:pointer}.treeview span.indent{margin-left:10px;margin-right:10px}.treeview span.icon{width:12px;margin-right:5px}.treeview .node-disabled{color:silver;cursor:not-allowed}
--------------------------------------------------------------------------------
/dev/frontEnd/portal02/static/css/ie10-viewport-bug-workaround.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * IE10 viewport hack for Surface/desktop Windows 8 bug
3 | * Copyright 2014-2015 Twitter, Inc.
4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5 | */
6 |
7 | /*
8 | * See the Getting Started docs for more information:
9 | * http://getbootstrap.com/getting-started/#support-ie10-width
10 | */
11 | @-ms-viewport { width: device-width; }
12 | @-o-viewport { width: device-width; }
13 | @viewport { width: device-width; }
14 |
--------------------------------------------------------------------------------
/dev/frontEnd/portal02/static/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/frontEnd/portal02/static/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/dev/frontEnd/portal02/static/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/frontEnd/portal02/static/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/dev/frontEnd/portal02/static/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/frontEnd/portal02/static/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/dev/frontEnd/portal02/static/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/frontEnd/portal02/static/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/dev/frontEnd/portal02/static/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/frontEnd/portal02/static/images/logo.png
--------------------------------------------------------------------------------
/dev/frontEnd/portal02/static/images/test.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/frontEnd/portal02/static/images/test.png
--------------------------------------------------------------------------------
/dev/frontEnd/portal02/static/js/ie10-viewport-bug-workaround.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * IE10 viewport hack for Surface/desktop Windows 8 bug
3 | * Copyright 2014-2015 Twitter, Inc.
4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5 | */
6 |
7 | // See the Getting Started docs for more information:
8 | // http://getbootstrap.com/getting-started/#support-ie10-width
9 |
10 | (function () {
11 | 'use strict';
12 |
13 | if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
14 | var msViewportStyle = document.createElement('style')
15 | msViewportStyle.appendChild(
16 | document.createTextNode(
17 | '@-ms-viewport{width:auto!important}'
18 | )
19 | )
20 | document.querySelector('head').appendChild(msViewportStyle)
21 | }
22 |
23 | })();
24 |
--------------------------------------------------------------------------------
/dev/frontEnd/react/初探react-指南.md:
--------------------------------------------------------------------------------
1 | # 初探react-指南
2 | 2018/11/6
3 |
4 | ### install nodejs on mac
5 |
6 | 访问:
7 | https://nodejs.org/zh-cn/
8 |
9 | 下载稳定版本到 mac 下安装即可。
10 |
11 | 为了加速安装过程,设置仓库
12 | ```bash
13 | npm config set registry https://registry.npm.taobao.org --global
14 |
15 | ```
16 |
17 |
18 | ### React 的项目初始化工具
19 | ```bash
20 | $ sudo npm install -g create-react-app
21 | $ npx create-react-app my-app
22 | $ cd my-app
23 | $ npm start
24 |
25 | ```
26 |
27 |
28 |
29 | ### 构建生产版本
30 | ```bash
31 | $ npm run build
32 |
33 | ```
34 |
35 |
36 |
37 | ### ZYXW、参考
38 | 1. [tutorial](https://reactjs.org/tutorial/tutorial.html)
39 | 2. [create-react-app](https://reactjs.org/docs/optimizing-performance.html#create-react-app)
40 |
--------------------------------------------------------------------------------
/dev/frontEnd/初探npm-安装.md:
--------------------------------------------------------------------------------
1 | # 初探npm-安装
2 | 2018/12/24
3 |
4 |
5 | 注: npm 包含在 nodejs 中
6 |
7 | ### install nodejs on mac
8 |
9 | 访问:
10 | https://nodejs.org/zh-cn/
11 |
12 | 下载稳定版本到 mac 下安装即可。
13 |
14 | 为了加速安装过程,设置仓库
15 | ```bash
16 | npm config set registry https://registry.npm.taobao.org --global
17 |
18 | ```
19 |
20 | 或者:安装 cnpm 来替代 npm
21 | ```bash
22 | npm install -g cnpm --registry=https://registry.npm.taobao.org
23 |
24 | ```
25 |
26 |
27 | ### 清理cache
28 | ```bash
29 | npm start --reset-cache
30 |
31 | ```
32 |
33 |
34 |
35 | ### ZYXW、参考
36 | 1. [taobao-npm](https://npm.taobao.org/)
37 |
--------------------------------------------------------------------------------
/dev/php/php-fastcgi介绍.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/php/php-fastcgi介绍.txt
--------------------------------------------------------------------------------
/dev/php/php-fpm工作方式.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/php/php-fpm工作方式.txt
--------------------------------------------------------------------------------
/dev/php/php查看编译参数.txt:
--------------------------------------------------------------------------------
1 | 查看编译安装的参数
2 | $ ./php -i|grep prefix
3 |
4 |
5 | 查看版本
6 | $ ./php -v
7 |
8 | 查看模块
9 | $ ./php -m
--------------------------------------------------------------------------------
/dev/python/django/MTV.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/MTV.png
--------------------------------------------------------------------------------
/dev/python/django/bin/test_django_by_curl.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | #2017/2/4
4 |
5 | domain_name='http://localhost'
6 | login_url="${domain_name}/accounts/login/"
7 | logout_url="${domain_name}/accounts/logout/"
8 | target_url="${domain_name}/hosts/load/vms"
9 | username='root'
10 | password=''
11 | f_cookies=cookies.txt
12 | curl_opts="-c ${f_cookies} -b ${f_cookies}"
13 |
14 | echo "[-] Step1: get csrftoken ..."
15 | curl -s ${curl_opts} ${login_url} >/dev/null
16 | django_token="$(grep csrftoken ${f_cookies} | awk '{print $NF}')"
17 |
18 | echo "[-] Step2: perform login ..."
19 | curl ${curl_opts} ${target_url} \
20 | -H "X-CSRFToken: ${django_token}" \
21 | -d "username=${username}&password=${password}"
22 |
23 | echo -e "\n[-] Step3: perform logout ..."
24 | curl -L -I ${logout_url} && rm -f ${f_cookies}
25 |
--------------------------------------------------------------------------------
/dev/python/django/test-django/django-polls/LICENSE:
--------------------------------------------------------------------------------
1 | apps are distributed under the BSD license
2 |
--------------------------------------------------------------------------------
/dev/python/django/test-django/django-polls/MANIFEST.in:
--------------------------------------------------------------------------------
1 | include LICENSE
2 | include README.rst
3 | recursive-include polls/static *
4 | recursive-include polls/templates *
5 | recursive-include docs *
6 |
--------------------------------------------------------------------------------
/dev/python/django/test-django/django-polls/dist/django-polls-0.1.tar.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/django-polls/dist/django-polls-0.1.tar.gz
--------------------------------------------------------------------------------
/dev/python/django/test-django/django-polls/django_polls.egg-info/SOURCES.txt:
--------------------------------------------------------------------------------
1 | LICENSE
2 | MANIFEST.in
3 | README.rst
4 | setup.py
5 | django_polls.egg-info/PKG-INFO
6 | django_polls.egg-info/SOURCES.txt
7 | django_polls.egg-info/dependency_links.txt
8 | django_polls.egg-info/top_level.txt
9 | polls/__init__.py
10 | polls/admin.py
11 | polls/models.py
12 | polls/tests.py
13 | polls/urls.py
14 | polls/views.py
15 | polls/static/polls/style.css
16 | polls/static/polls/images/background.png
17 | polls/templates/polls/detail.html
18 | polls/templates/polls/index.html
19 | polls/templates/polls/results.html
--------------------------------------------------------------------------------
/dev/python/django/test-django/django-polls/django_polls.egg-info/dependency_links.txt:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/dev/python/django/test-django/django-polls/django_polls.egg-info/top_level.txt:
--------------------------------------------------------------------------------
1 | polls
2 |
--------------------------------------------------------------------------------
/dev/python/django/test-django/django-polls/polls/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/django-polls/polls/__init__.py
--------------------------------------------------------------------------------
/dev/python/django/test-django/django-polls/polls/__init__.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/django-polls/polls/__init__.pyc
--------------------------------------------------------------------------------
/dev/python/django/test-django/django-polls/polls/admin.py:
--------------------------------------------------------------------------------
1 | from django.contrib import admin
2 |
3 | # Register your models here.
4 | from .models import Choice, Question
5 |
6 | class ChoiceInline(admin.TabularInline):
7 | model = Choice
8 | extra = 1
9 |
10 | class QuestionAdmin(admin.ModelAdmin):
11 | fieldsets = [
12 | (None, {'fields': ['question_text']}),
13 | ('Date information', {'fields': ['pub_date'], 'classes': ['collapse']}),
14 | ]
15 | inlines = [ChoiceInline]
16 | list_display = ('question_text', 'pub_date', 'was_published_recently')
17 | list_filter = ['pub_date']
18 | search_fields = ['question_text']
19 |
20 | admin.site.register(Question, QuestionAdmin)
21 |
--------------------------------------------------------------------------------
/dev/python/django/test-django/django-polls/polls/admin.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/django-polls/polls/admin.pyc
--------------------------------------------------------------------------------
/dev/python/django/test-django/django-polls/polls/models.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/django-polls/polls/models.pyc
--------------------------------------------------------------------------------
/dev/python/django/test-django/django-polls/polls/static/polls/images/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/opera443399/ops/063e6da1596059b09ede4dbbad6681f9499e85a7/dev/python/django/test-django/django-polls/polls/static/polls/images/background.png
--------------------------------------------------------------------------------
/dev/python/django/test-django/django-polls/polls/static/polls/style.css:
--------------------------------------------------------------------------------
1 | body {
2 | background: white url("images/background.png") no-repeat right bottom;
3 | }
4 |
5 | li a {
6 | color: green;
7 | }
8 |
9 |
--------------------------------------------------------------------------------
/dev/python/django/test-django/django-polls/polls/templates/polls/detail.html:
--------------------------------------------------------------------------------
1 | {{ question.question_text }}
2 |
3 | {% if error_message %}{{ error_message }}
{% endif %}
4 |
5 |
13 |
--------------------------------------------------------------------------------
/dev/python/django/test-django/django-polls/polls/templates/polls/index.html:
--------------------------------------------------------------------------------
1 | {% load staticfiles %}
2 |
3 |
4 |
5 | {% if latest_question_list %}
6 |
11 | {% else %}
12 | No polls are available.
13 | {% endif %}
14 |
--------------------------------------------------------------------------------
/dev/python/django/test-django/django-polls/polls/templates/polls/results.html:
--------------------------------------------------------------------------------
1 | {{ question.question_text }}
2 |
3 |
4 | {% for choice in question.choice_set.all %}
5 | - {{ choice.choice_text }} -- {{ choice.votes }} vote{{ choice.votes|pluralize }}
6 | {% endfor %}
7 |
8 |
9 |