In this gist, you can find all the VS Code chat modes I am using in my projects for the Persona based approach technique I created.
You will find an article about on my dev.to blog (dev.to/kasuken)
In this gist, you can find all the VS Code chat modes I am using in my projects for the Persona based approach technique I created.
You will find an article about on my dev.to blog (dev.to/kasuken)
| You can easy add PostGis following few simple steps: | |
| 1. add to `compose\production\django` samewhere in `RUN apt-get update \` | |
| ```bash | |
| && apt-get install -y gdal-bin \ | |
| ``` | |
| 2. edit `compose\production\postgres` | |
| change | |
| `FROM postgres:12.3` |
| from django.db.models import Field | |
| from django.conf import settings | |
| from django.utils.decorators import cached_property | |
| class VirtualField(object): | |
| """ | |
| A virtual field, mainly used for caching and seamless computed field retrieval. | |
| This acts both like a (cached) property and a virtual field if supported. | |
| """ |
rvm pkg install opensslRequirements installation successful.
Fetching openssl-1.0.1i.tar.gz to /Users/user/.rvm/archives
Extracting openssl to /Users/user/.rvm/src/openssl-1.0.1i.....
Configuring openssl in /Users/user/.rvm/src/openssl-1.0.1i....................
Compiling openssl in /Users/user/.rvm/src/openssl-1.0.1i......................| {% extends "base.html" %} | |
| {% load static %} | |
| {% block title %}{% block head_title %}Knowledgebase - Delete {{ article.name }}{% endblock head_title %}{% endblock title %} | |
| {% block content %} | |
| <div class="container-fluid"> | |
| <div class="row ml-1 mr-1"> | |
| <div class="col-md-12"> |
| All the codes below are collected from the Internet. Gathering below just for easy reference. |
1- Create PKCS#12 keystore (.p12 or .pfx file)
keytool -genkeypair -keystore myKeystore.p12 -storetype PKCS12 -storepass MY_PASSWORD -alias KEYSTORE_ENTRY -keyalg RSA -keysize 2048 -validity 99999 -dname "CN=My SSL Certificate, OU=My Team, O=My Company, L=My City, ST=My State, C=SA" -ext san=dns:mydomain.com,dns:localhost,ip:127.0.0.1
myKeystore.p12 = keystore filename. It can with .pfx extension as well.MY_PASSWORD = password used for the keystore and the private key as well.CN = commonName, it will be shown as certiciate name in certificates list.OU = organizationUnit, department name for example.##Google Interview Questions: Product Marketing Manager
| from django.db.models import Field | |
| from django.conf import settings | |
| from django.utils.decorators import cached_property | |
| class VirtualField(object): | |
| """ | |
| A virtual field, mainly used for caching and seamless computed field retrieval. | |
| This acts both like a (cached) property and a virtual field if supported. | |
| """ |
gem 'rails_12factor' to your Gemfile. This will add error logging and the ability for your app to serve static assets.bundleRAILS_ENV=production rake db:create db:migrate db:seedrake secret and copy the outputexport SECRET_KEY_BASE=output-of-rake-secretrake assets:precompile. This will create a folder public/assets that contains all of your assets.RAILS_ENV=production rails s and you should see your app.Remember to clobber your assets (rake assets:clobber) and re-precompile (rake assets:precompile) if you make changes.