Skip to content

Instantly share code, notes, and snippets.

docker run --name postgres-nest -p 5432:5432 -e POSTGRES_PASSWORD=postgres -d postgres
docker run -p 9000:80 -e '[email protected]' -e 'PGADMIN_DEFAULT_PASSWORD=password' -d dpage/pgadmin4
@Dhavalc2012
Dhavalc2012 / letsencrypt_2020.md
Created September 8, 2021 08:32 — forked from cecilemuller/letsencrypt_2020.md
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

@Dhavalc2012
Dhavalc2012 / 2019-https-localhost.md
Created September 8, 2021 08:32 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@Dhavalc2012
Dhavalc2012 / example.md
Created June 8, 2021 17:54
Kotlin PKCE Code Verifier And Code Challenge.

@Author DCZero

#This line generates random safe string of 128 Characters. val code_verifier = generateRandomString(128); Log.i("Auth", code_verifier);

#This line generates random code challenge with Base64 Safe And No Padding. val code_challenge = generateCodeChallenge(code_verifier); Log.i("Auth", code_challenge);