If you are hosting a Django app with Kubernetes, there are a few things that you need to take care of.
Here is a sample Dockerfile for a containerized app:
FROM python:3.9-buster
RUN apt-get update \
--fix-missing \sentrySENTRY_SECRET_KEY to random 32 char stringdocker-compose up -ddocker-compose exec sentry sentry upgrade to setup database and create admin userdocker-compose exec sentry pip install sentry-slack if you want slack plugin, it can be done laterdocker-compose restart sentry9000| # | |
| # docker-compose file used ONLY for local development. | |
| # For more info, see: | |
| # https://posthog.com/handbook/engineering/developing-locally | |
| # | |
| # If you are looking at self-hosted deployment options check | |
| # https://posthog.com/docs/self-host | |
| # | |
| version: '3' |
| #!/usr/bin/env bash | |
| # REF: https://cloud.google.com/armor/docs/integrating-cloud-armor#with_ingress | |
| # REF: https://cloud.google.com/armor/docs/configure-security-policies | |
| # REF: https://cloud.google.com/iap/docs/load-balancer-howto | |
| # REF: https://cloud.google.com/sdk/gcloud/reference/compute/url-maps/add-path-matcher | |
| # REF: https://cloud.google.com/load-balancing/docs/https/setting-up-url-rewrite | |
| export PROJECT_ID=$(gcloud config get-value project) | |
| export PROJECT_USER=$(gcloud config get-value core/account) # set current user |
| [ | |
| {name: 'Afghanistan', code: 'AF'}, | |
| {name: 'Åland Islands', code: 'AX'}, | |
| {name: 'Albania', code: 'AL'}, | |
| {name: 'Algeria', code: 'DZ'}, | |
| {name: 'American Samoa', code: 'AS'}, | |
| {name: 'AndorrA', code: 'AD'}, | |
| {name: 'Angola', code: 'AO'}, | |
| {name: 'Anguilla', code: 'AI'}, | |
| {name: 'Antarctica', code: 'AQ'}, |
| /* | |
| RUN THE SCRIPT BY YOURSELF: | |
| - Run `node paddle-revenue.js` on your server and let it run 24/7. | |
| - Access the API at http://your_server_ip:8175/ (JSON) | |
| HOSTED VERSION: | |
| If you don't want to run the script by your own, you can use the | |
| hosted version. The price is $5 per month per Paddle account. | |
| Here is how: |
| LAWS OF KENYA | |
| textutil -convert docx *.doc |
You can use this regular expression to match markdown links:
\[(.*?)\]\(.*?\)
Explanation:
\[ and \] match a literal open and close bracket.(.*?) matches any character (.), repeated any number of times (*) but as few as possible (?). The brackets create a capture group.\( and \) match a literal open and close parenthesis..*? matches any character, repeated any number of times but as few as possible.