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
| [tool.poetry] | |
| name = "django-project" | |
| version = "0.1.0" | |
| description = "" | |
| authors = ["Your Name <you@example.com>"] | |
| [tool.poetry.dependencies] | |
| python = "^3.5" | |
| django = "^2.1" |
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
| [tool.poetry] | |
| name = "django-project" | |
| version = "0.1.0" | |
| description = "" | |
| authors = ["Your Name <you@example.com>"] | |
| [tool.poetry.dependencies] | |
| python = "^3.5" | |
| [tool.poetry.dev-dependencies] |
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
| [tool.poetry] | |
| name = "django-project" | |
| version = "0.1.0" | |
| description = "" | |
| authors = ["Your Name <you@example.com>"] | |
| [tool.poetry.dependencies] | |
| python = "^2.7" | |
| django = "^2.1" |
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
| $ python3 -m venv env3 | |
| $ source env3/bin/activate | |
| $ pip install -e . | |
| $ which documentation-builder | |
| env3/bin/documentation-builder | |
| $ documentation-builder --source-folder docs | |
| Built: | |
| - build/en/structure.html | |
| - build/en/index.html | |
| - build/en/homepage-examples/enterprise-proxy-example.html |
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
| # A basic service running an *ephemeral* postgres instance | |
| # This can then be used in applications by pointing at "postgres://postgres@postgres/postgres" | |
| kind: Service | |
| apiVersion: v1 | |
| metadata: | |
| name: postgres | |
| spec: | |
| selector: | |
| app: postgres |
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
| #! /usr/bin/env bash | |
| if [ -z "${1}" ]; then echo "Usage: restart_pod {pod_name}"; exit 1; fi | |
| kubectl get pod ${1} --namespace staging -o yaml | kubectl replace --force -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
| set -e | |
| rm -rf env/ env2/ env3/ | |
| if [ ! -d .git ]; then | |
| echo "" | |
| echo "===" | |
| echo "Not a git repository: `pwd`" | |
| echo "===" | |
| echo "" |
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
| from wsgiref.simple_server import make_server | |
| import time | |
| def application(env, start_response): | |
| """ | |
| A basic WSGI application | |
| """ | |
| time.sleep(1.3) |
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
| from wsgiref.simple_server import make_server | |
| import random | |
| def application(env, start_response): | |
| """ | |
| A basic WSGI application | |
| """ | |
| if random.random() < 0.5: |
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
| https://insights.ubuntu.com/articles | |
| https://insights.ubuntu.com/author/alexia-emman/ | |
| https://insights.ubuntu.com/author/aprilswang/ | |
| https://insights.ubuntu.com/author/canonical/ | |
| https://insights.ubuntu.com/author/canonical/feed/ | |
| https://insights.ubuntu.com/author/canonical/page/2/ | |
| https://insights.ubuntu.com/author/cjohnston/ | |
| https://insights.ubuntu.com/author/davidc3-2/ | |
| https://insights.ubuntu.com/author/davidc3-2/feed/ | |
| https://insights.ubuntu.com/author/davidc3-2/page/2/ |