- Download docker-compose.yml to dir named
sentry
- Change
SENTRY_SECRET_KEY
to random 32 char string - Run
docker-compose up -d
- Run
docker-compose exec sentry sentry upgrade
to setup database and create admin user - (Optional) Run
docker-compose exec sentry pip install sentry-slack
if you want slack plugin, it can be done later - Run
docker-compose restart sentry
- Sentry is now running on public port
9000
# | |
# 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' |
Last revised on [DATE]
[COMPANY] will collect certain non-personally identify information about you as you use our sites. We may use this data to better understand our users. We can also publish this data, but the data will be about a large group of users, not individuals.
We will also ask you to provide personal information, but you'll always be able to opt out. If you give us personal information, we won't do anything evil with it.
Last revised on [DATE]
[COMPANY] operates the [SERVICE] service, which we hope you use. If you use it, please use it responsibly. If you don't, we'll have to terminate your account.
For paid accounts, you'll be charged on a monthly basis. You can cancel anytime, but there are no refunds.
This is the main guide: https://github.com/HackSoftware/Django-Styleguide
We can also take some inspiration from
import React, { useEffect, useRef, useState } from "react"; | |
function Editor({ onChange, editorLoaded, name, value }) { | |
const editorRef = useRef(); | |
const { CKEditor, ClassicEditor } = editorRef.current || {}; | |
useEffect(() => { | |
editorRef.current = { | |
CKEditor: require("@ckeditor/ckeditor5-react").CKEditor, // v3+ | |
ClassicEditor: require("@ckeditor/ckeditor5-build-classic") |
name: Deploy Backend Production | |
on: | |
push: | |
branches: | |
- production | |
paths: | |
- "backend/**" | |
workflow_dispatch: |
import yaml | |
with open("records.yaml", "r") as stream: | |
with open('cloudflare.txt', 'w+') as cloudflare_file: | |
docs = yaml.load_all(stream) | |
for doc in docs: | |
item = dict(doc.items()) |
Clone of https://djangosnippets.org/snippets/1127
Author: willhardy Posted: October 11, 2008
Inspired by snippet 1126, I thought I would post a module that stores crontab entries in a database, with a less powerful, but more end-user friendly API. ("twice a week starting on Sat 1 Dec 2007, 6:23am", instead of "23 6,18 * ").
The crontab is synchronised when an entry is changed, and relevant environment variables, function name and arguments are provided. You might want to store this as an app called "scheduler" to match the imports.