Ones you have generated, downloaded and extracted the certificate zip, you will find 2 files in it:
gd_bundle-g2-g1.crtIntermediate CertificateRANDOM_NUM.crtYour SSL Certificate
| const { Database, Resource: SequelizeResource } = require('admin-bro-sequelizejs') | |
| const { BaseRecord } = require('admin-bro') | |
| const { Op } = require('sequelize') | |
| class Resource extends SequelizeResource { | |
| titleField() { | |
| return this.decorate().titleProperty().name() | |
| } |
| #!/bin/sh | |
| # safety switch, exit script if there's error. Full command of shortcut `set -e` | |
| set -o errexit | |
| # safety switch, uninitialized variables will stop script. Full command of shortcut `set -u` | |
| set -o nounset | |
| # tear down function | |
| teardown() | |
| { |
| #!/bin/bash | |
| # Written 2018-11-15 by 4410287 | |
| # This script will create a backup file of a postgres database and compress it. It is capable of access a local or remote server to pull the backup. After creating a new backup, it will delete backups that are older than 15 days, with the exception of backups created the first of every month. It is recommended to create a seperate database user specifically for backup purposes, and to set the permissions of this script to prevent access to the login details. Backup scripts for different databases should be run in seperate folders or they will overwrite each other. | |
| HOSTNAME= | |
| USERNAME= | |
| PASSWORD= | |
| DATABASE= |
| # look for an .editorconfig file inside this project | |
| root = true | |
| [*] | |
| charset = utf-8 | |
| end_of_line = lf | |
| indent_size = 2 | |
| indent_style = space | |
| # while saving | |
| insert_final_newline = true |
| # 1) Create a middlewares/middlewares.py file and copy this: | |
| import threading | |
| class RequestMiddleware: | |
| def __init__(self, get_response, thread_local=threading.local()): | |
| self.get_response = get_response | |
| self.thread_local = thread_local | |
| # One-time configuration and initialization. |
| openssl rsa -outform der -in privkey.pem -out privkey.key | |
| openssl x509 -outform der -in fullchain.pem -out fullchain.crt | |
| openssl x509 -outform der -in cert.pem -out cert.crt |
https://realpython.com/blog/python/asynchronous-tasks-with-django-and-celery/
$ pip install celery
$ sudo apt-get install rabbitmq-server
| apt-get install wkhtmltopdf | |
| apt-get install xvfb | |
| echo -e '#!/bin/bash\nxvfb-run -a --server-args="-screen 0, 1024x768x24" /usr/bin/wkhtmltopdf -q $*' > /usr/bin/wkhtmltopdf.sh | |
| chmod a+x /usr/bin/wkhtmltopdf.sh | |
| ln -s /usr/bin/wkhtmltopdf.sh /usr/local/bin/wkhtmltopdf | |
| wkhtmltopdf http://www.google.com output.pdf |
| # install homebrew | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| # install postgresql | |
| brew install postgresql | |
| # start homebrew postgresql service | |
| brew service start postgresql | |
| # create a database with your username |