From 07186ec9a13c6a209426ea658eb17959c98576e7 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Tue, 17 Nov 2020 15:51:59 +0530 Subject: Publish deploy 2020-11-17 15:51 --- .googlecb0897d479c87d97 2.html.icloud | Bin 0 -> 178 bytes CNAME | 1 - .../gciTales/01-teachableMachines/01-collect.png | Bin 3148125 -> 0 bytes assets/posts/arjs/03-knot.png | Bin 4690368 -> 0 bytes feed.rss | 26 ++++++++++++++++++++- index.html | 2 +- posts/2020-10-11-macOS-Virtual-Cam-OBS/index.html | 2 +- posts/2020-11-17-Lets-Encrypt-DuckDns/index.html | 25 ++++++++++++++++++++ posts/index.html | 2 +- sitemap.xml | 2 +- tags/codesnippet/index.html | 2 +- tags/index.html | 2 +- tags/webdevelopment/index.html | 1 + 13 files changed, 57 insertions(+), 8 deletions(-) create mode 100644 .googlecb0897d479c87d97 2.html.icloud delete mode 100644 CNAME delete mode 100644 assets/gciTales/01-teachableMachines/01-collect.png delete mode 100644 assets/posts/arjs/03-knot.png create mode 100644 posts/2020-11-17-Lets-Encrypt-DuckDns/index.html create mode 100644 tags/webdevelopment/index.html diff --git a/.googlecb0897d479c87d97 2.html.icloud b/.googlecb0897d479c87d97 2.html.icloud new file mode 100644 index 0000000..facc468 Binary files /dev/null and b/.googlecb0897d479c87d97 2.html.icloud differ diff --git a/CNAME b/CNAME deleted file mode 100644 index fe28bd0..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -blog.navan.dev \ No newline at end of file diff --git a/assets/gciTales/01-teachableMachines/01-collect.png b/assets/gciTales/01-teachableMachines/01-collect.png deleted file mode 100644 index 58e0b54..0000000 Binary files a/assets/gciTales/01-teachableMachines/01-collect.png and /dev/null differ diff --git a/assets/posts/arjs/03-knot.png b/assets/posts/arjs/03-knot.png deleted file mode 100644 index 0c7f0f0..0000000 Binary files a/assets/posts/arjs/03-knot.png and /dev/null differ diff --git a/feed.rss b/feed.rss index 4d7c3da..b0478ce 100644 --- a/feed.rss +++ b/feed.rss @@ -1,4 +1,28 @@ -Navan ChauhanWelcome to my personal fragment of the internet. Majority of the posts should be complete.https://navanchauhan.github.io/enSun, 11 Oct 2020 16:28:56 +0530Sun, 11 Oct 2020 16:28:56 +0530250https://navanchauhan.github.io/posts/2020-10-11-macOS-Virtual-Cam-OBSTrying Different Camera SetupsComparison of different cameras setups for using as a webcam and tutorials for the same.https://navanchauhan.github.io/posts/2020-10-11-macOS-Virtual-Cam-OBSSun, 11 Oct 2020 16:12:00 +0530Trying Different Camera Setups
  1. Animated Overlays
  2. Using a modern camera as your webcam
  3. Using your phone's camera as your webcam
  4. Using a USB Camera

Comparison

Here are the results before you begin reading.

+Navan ChauhanWelcome to my personal fragment of the internet. Majority of the posts should be complete.https://navanchauhan.github.io/enTue, 17 Nov 2020 15:50:56 +0530Tue, 17 Nov 2020 15:50:56 +0530250https://navanchauhan.github.io/posts/2020-11-17-Lets-Encrypt-DuckDnsGenerating HTTPS Certificate using DNS a Challenge through Let's EncryptShort code-snippet to generate HTTPS certificates using the DNS Challenge through Lets Encrypt for a web-server using DuckDNS.https://navanchauhan.github.io/posts/2020-11-17-Lets-Encrypt-DuckDnsTue, 17 Nov 2020 15:04:00 +0530Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt

I have a Raspberry-Pi running a Flask app through Gunicorn (Ubuntu 20.04 LTS). I am exposing it to the internet using DuckDNS.

Dependencies

sudo apt update && sudo apt install certbot -y +

Get the Certificate

sudo certbot certonly --manual --preferred-challenges dns-01 --email senpai@email.com -d mydomain.duckdns.org +

After you accept that you are okay with you IP address being logged, it will prompt you with updating your dns record. You need to create a new TXT record in the DNS settings for your domain.

For DuckDNS users it is as simple as entering this URL in their browser:

http://duckdns.org/update?domains=mydomain&token=duckdnstoken&txt=certbotdnstxt +

Where mydomain is your DuckDNS domain, duckdnstoken is your DuckDNS Token ( Found on the dashboard when you login) and certbotdnstxt is the TXT record value given by the prompt.

You can check if the TXT records have been updated by using the dig command:

dig navanspi.duckdns.org TXT +; <<>> DiG 9.16.1-Ubuntu <<>> navanspi.duckdns.org TXT +;; global options: +cmd +;; Got answer: +;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27592 +;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 + +;; OPT PSEUDOSECTION: +; EDNS: version: 0, flags:; udp: 65494 +;; QUESTION SECTION: +;navanspi.duckdns.org. IN TXT + +;; ANSWER SECTION: +navanspi.duckdns.org. 60 IN TXT "4OKbijIJmc82Yv2NiGVm1RmaBHSCZ_230qNtj9YA-qk" + +;; Query time: 275 msec +;; SERVER: 127.0.0.53#53(127.0.0.53) +;; WHEN: Tue Nov 17 15:23:15 IST 2020 +;; MSG SIZE rcvd: 105 +

DuckDNS almost instantly propagates the changes but for other domain hosts, it could take a while.

Once you can ensure that the TXT record changes has been successfully applied and is visible through the dig command, press enter on the Certbot prompt and your certificate should be generated.

Renewing

As we manually generated the certificate certbot renew will fail, to renew the certificate you need to simply re-generate the certificate using the above steps.

Using the Certificate with Gunicorn

Example Gunicorn command for running a web-app:

gunicorn api:app -k uvicorn.workers.UvicornWorker -b 0.0.0.0:7589 +

To use the certificate with it, simply copy the cert.pem and privkey.pem to your working directory ( change the appropriate permissions ) and include them in the command

gunicorn api:app -k uvicorn.workers.UvicornWorker -b 0.0.0.0:7589 --certfile=cert.pem --keyfile=privkey.pem +

Caveats with copying the certificate: If you renew the certificate you will have to re-copy the files

]]>
https://navanchauhan.github.io/posts/2020-10-11-macOS-Virtual-Cam-OBSTrying Different Camera SetupsComparison of different cameras setups for using as a webcam and tutorials for the same.https://navanchauhan.github.io/posts/2020-10-11-macOS-Virtual-Cam-OBSSun, 11 Oct 2020 16:12:00 +0530Trying Different Camera Setups
  1. Animated Overlays
  2. Using a modern camera as your webcam
  3. Using your phone's camera as your webcam
  4. Using a USB Camera

Comparison

Here are the results before you begin reading.

Normal Webcam USB Webcam Camo iPhone 5S diff --git a/index.html b/index.html index 10c6421..e60b5cc 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -👋 Hi! | Navan Chauhan

👋 Hi!

Welcome to my personal fragment of the internet. Majority of the posts should be complete.

Latest content

\ No newline at end of file +👋 Hi! | Navan Chauhan

👋 Hi!

Welcome to my personal fragment of the internet. Majority of the posts should be complete.

Latest content

\ No newline at end of file diff --git a/posts/2020-10-11-macOS-Virtual-Cam-OBS/index.html b/posts/2020-10-11-macOS-Virtual-Cam-OBS/index.html index 9f83272..9302456 100644 --- a/posts/2020-10-11-macOS-Virtual-Cam-OBS/index.html +++ b/posts/2020-10-11-macOS-Virtual-Cam-OBS/index.html @@ -1,4 +1,4 @@ -Trying Different Camera Setups | Navan Chauhan
3 minute readCreated on October 11, 2020

Trying Different Camera Setups

  1. Animated Overlays
  2. Using a modern camera as your webcam
  3. Using your phone's camera as your webcam
  4. Using a USB Camera

Comparison

Here are the results before you begin reading.

+Trying Different Camera Setups | Navan Chauhan
3 minute readCreated on October 11, 2020Last modified on November 17, 2020

Trying Different Camera Setups

  1. Animated Overlays
  2. Using a modern camera as your webcam
  3. Using your phone's camera as your webcam
  4. Using a USB Camera

Comparison

Here are the results before you begin reading.

Normal Webcam USB Webcam Camo iPhone 5S diff --git a/posts/2020-11-17-Lets-Encrypt-DuckDns/index.html b/posts/2020-11-17-Lets-Encrypt-DuckDns/index.html new file mode 100644 index 0000000..de0df91 --- /dev/null +++ b/posts/2020-11-17-Lets-Encrypt-DuckDns/index.html @@ -0,0 +1,25 @@ +Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt | Navan Chauhan
3 minute readCreated on November 17, 2020

Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt

I have a Raspberry-Pi running a Flask app through Gunicorn (Ubuntu 20.04 LTS). I am exposing it to the internet using DuckDNS.

Dependencies

sudo apt update && sudo apt install certbot -y +

Get the Certificate

sudo certbot certonly --manual --preferred-challenges dns-01 --email senpai@email.com -d mydomain.duckdns.org +

After you accept that you are okay with you IP address being logged, it will prompt you with updating your dns record. You need to create a new TXT record in the DNS settings for your domain.

For DuckDNS users it is as simple as entering this URL in their browser:

http://duckdns.org/update?domains=mydomain&token=duckdnstoken&txt=certbotdnstxt +

Where mydomain is your DuckDNS domain, duckdnstoken is your DuckDNS Token ( Found on the dashboard when you login) and certbotdnstxt is the TXT record value given by the prompt.

You can check if the TXT records have been updated by using the dig command:

dig navanspi.duckdns.org TXT +; <<>> DiG 9.16.1-Ubuntu <<>> navanspi.duckdns.org TXT +;; global options: +cmd +;; Got answer: +;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27592 +;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 + +;; OPT PSEUDOSECTION: +; EDNS: version: 0, flags:; udp: 65494 +;; QUESTION SECTION: +;navanspi.duckdns.org. IN TXT + +;; ANSWER SECTION: +navanspi.duckdns.org. 60 IN TXT "4OKbijIJmc82Yv2NiGVm1RmaBHSCZ_230qNtj9YA-qk" + +;; Query time: 275 msec +;; SERVER: 127.0.0.53#53(127.0.0.53) +;; WHEN: Tue Nov 17 15:23:15 IST 2020 +;; MSG SIZE rcvd: 105 +

DuckDNS almost instantly propagates the changes but for other domain hosts, it could take a while.

Once you can ensure that the TXT record changes has been successfully applied and is visible through the dig command, press enter on the Certbot prompt and your certificate should be generated.

Renewing

As we manually generated the certificate certbot renew will fail, to renew the certificate you need to simply re-generate the certificate using the above steps.

Using the Certificate with Gunicorn

Example Gunicorn command for running a web-app:

gunicorn api:app -k uvicorn.workers.UvicornWorker -b 0.0.0.0:7589 +

To use the certificate with it, simply copy the cert.pem and privkey.pem to your working directory ( change the appropriate permissions ) and include them in the command

gunicorn api:app -k uvicorn.workers.UvicornWorker -b 0.0.0.0:7589 --certfile=cert.pem --keyfile=privkey.pem +

Caveats with copying the certificate: If you renew the certificate you will have to re-copy the files

Tagged with:
\ No newline at end of file diff --git a/posts/index.html b/posts/index.html index 33764f7..7d0fc31 100644 --- a/posts/index.html +++ b/posts/index.html @@ -1 +1 @@ -Posts | Navan Chauhan

Posts

Tips, tricks and tutorials which I think might be useful.

\ No newline at end of file +Posts | Navan Chauhan

Posts

Tips, tricks and tutorials which I think might be useful.

\ No newline at end of file diff --git a/sitemap.xml b/sitemap.xml index 948448b..0eead38 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1 +1 @@ -https://navanchauhan.github.io/aboutdaily1.02020-07-16https://navanchauhan.github.io/postsdaily1.02020-10-11https://navanchauhan.github.io/posts/2010-01-24-experimentsmonthly0.52020-06-01https://navanchauhan.github.io/posts/2019-05-05-Custom-Snowboard-Anemone-Thememonthly0.52020-09-15https://navanchauhan.github.io/posts/2019-12-04-Google-Teachable-Machinesmonthly0.52020-09-15https://navanchauhan.github.io/posts/2019-12-08-Image-Classifier-Tensorflowmonthly0.52020-09-15https://navanchauhan.github.io/posts/2019-12-08-Splitting-Zipsmonthly0.52020-06-01https://navanchauhan.github.io/posts/2019-12-10-TensorFlow-Model-Predictionmonthly0.52020-06-01https://navanchauhan.github.io/posts/2019-12-16-TensorFlow-Polynomial-Regressionmonthly0.52020-09-15https://navanchauhan.github.io/posts/2019-12-22-Fake-News-Detectormonthly0.52020-09-15https://navanchauhan.github.io/posts/2020-01-14-Converting-between-PIL-NumPymonthly0.52020-06-01https://navanchauhan.github.io/posts/2020-01-15-Setting-up-Kaggle-to-use-with-Colabmonthly0.52020-09-15https://navanchauhan.github.io/posts/2020-01-16-Image-Classifier-Using-Turicreatemonthly0.52020-06-01https://navanchauhan.github.io/posts/2020-01-19-Connect-To-Bluetooth-Devices-Linux-Terminalmonthly0.52020-06-01https://navanchauhan.github.io/posts/2020-03-03-Playing-With-Android-TVmonthly0.52020-06-01https://navanchauhan.github.io/posts/2020-03-08-Making-Vaporwave-Trackmonthly0.52020-09-15https://navanchauhan.github.io/posts/2020-04-13-Fixing-X11-Error-AmberTools-macOSmonthly0.52020-09-15https://navanchauhan.github.io/posts/2020-05-31-compiling-open-babel-on-iosmonthly0.52020-09-15https://navanchauhan.github.io/posts/2020-06-01-Speeding-Up-Molecular-Docking-Workflow-AutoDock-Vina-and-PyMOLmonthly0.52020-09-15https://navanchauhan.github.io/posts/2020-06-02-Compiling-AutoDock-Vina-on-iOSmonthly0.52020-09-15https://navanchauhan.github.io/posts/2020-07-01-Install-rdkit-colabmonthly0.52020-09-15https://navanchauhan.github.io/posts/2020-08-01-Natural-Feature-Tracking-ARJSmonthly0.52020-09-15https://navanchauhan.github.io/posts/2020-10-11-macOS-Virtual-Cam-OBSmonthly0.52020-10-11https://navanchauhan.github.io/posts/hello-worldmonthly0.52020-06-01https://navanchauhan.github.io/publicationsdaily1.02020-03-17https://navanchauhan.github.io/publications/2019-05-14-Detecting-Driver-Fatigue-Over-Speeding-and-Speeding-up-Post-Accident-Responsemonthly0.52020-03-14https://navanchauhan.github.io/publications/2020-03-14-generating-vaporwavemonthly0.52020-03-15https://navanchauhan.github.io/publications/2020-03-17-Possible-Drug-Candidates-COVID-19monthly0.52020-03-18 \ No newline at end of file +https://navanchauhan.github.io/aboutdaily1.02020-07-16https://navanchauhan.github.io/postsdaily1.02020-11-17https://navanchauhan.github.io/posts/2010-01-24-experimentsmonthly0.52020-06-01https://navanchauhan.github.io/posts/2019-05-05-Custom-Snowboard-Anemone-Thememonthly0.52020-09-15https://navanchauhan.github.io/posts/2019-12-04-Google-Teachable-Machinesmonthly0.52020-09-15https://navanchauhan.github.io/posts/2019-12-08-Image-Classifier-Tensorflowmonthly0.52020-09-15https://navanchauhan.github.io/posts/2019-12-08-Splitting-Zipsmonthly0.52020-06-01https://navanchauhan.github.io/posts/2019-12-10-TensorFlow-Model-Predictionmonthly0.52020-06-01https://navanchauhan.github.io/posts/2019-12-16-TensorFlow-Polynomial-Regressionmonthly0.52020-09-15https://navanchauhan.github.io/posts/2019-12-22-Fake-News-Detectormonthly0.52020-09-15https://navanchauhan.github.io/posts/2020-01-14-Converting-between-PIL-NumPymonthly0.52020-06-01https://navanchauhan.github.io/posts/2020-01-15-Setting-up-Kaggle-to-use-with-Colabmonthly0.52020-09-15https://navanchauhan.github.io/posts/2020-01-16-Image-Classifier-Using-Turicreatemonthly0.52020-06-01https://navanchauhan.github.io/posts/2020-01-19-Connect-To-Bluetooth-Devices-Linux-Terminalmonthly0.52020-06-01https://navanchauhan.github.io/posts/2020-03-03-Playing-With-Android-TVmonthly0.52020-06-01https://navanchauhan.github.io/posts/2020-03-08-Making-Vaporwave-Trackmonthly0.52020-09-15https://navanchauhan.github.io/posts/2020-04-13-Fixing-X11-Error-AmberTools-macOSmonthly0.52020-09-15https://navanchauhan.github.io/posts/2020-05-31-compiling-open-babel-on-iosmonthly0.52020-09-15https://navanchauhan.github.io/posts/2020-06-01-Speeding-Up-Molecular-Docking-Workflow-AutoDock-Vina-and-PyMOLmonthly0.52020-09-15https://navanchauhan.github.io/posts/2020-06-02-Compiling-AutoDock-Vina-on-iOSmonthly0.52020-09-15https://navanchauhan.github.io/posts/2020-07-01-Install-rdkit-colabmonthly0.52020-09-15https://navanchauhan.github.io/posts/2020-08-01-Natural-Feature-Tracking-ARJSmonthly0.52020-09-15https://navanchauhan.github.io/posts/2020-10-11-macOS-Virtual-Cam-OBSmonthly0.52020-11-17https://navanchauhan.github.io/posts/2020-11-17-Lets-Encrypt-DuckDnsmonthly0.52020-11-17https://navanchauhan.github.io/posts/hello-worldmonthly0.52020-06-01https://navanchauhan.github.io/publicationsdaily1.02020-03-17https://navanchauhan.github.io/publications/2019-05-14-Detecting-Driver-Fatigue-Over-Speeding-and-Speeding-up-Post-Accident-Responsemonthly0.52020-03-14https://navanchauhan.github.io/publications/2020-03-14-generating-vaporwavemonthly0.52020-03-15https://navanchauhan.github.io/publications/2020-03-17-Possible-Drug-Candidates-COVID-19monthly0.52020-03-18 \ No newline at end of file diff --git a/tags/codesnippet/index.html b/tags/codesnippet/index.html index bf5ffde..162f321 100644 --- a/tags/codesnippet/index.html +++ b/tags/codesnippet/index.html @@ -1 +1 @@ -Navan Chauhan

Tagged with Code-Snippet

Browse all tags
\ No newline at end of file +Navan Chauhan

Tagged with Code-Snippet

Browse all tags
\ No newline at end of file diff --git a/tags/index.html b/tags/index.html index 3f09458..46c779a 100644 --- a/tags/index.html +++ b/tags/index.html @@ -1 +1 @@ -Navan Chauhan
\ No newline at end of file +Navan Chauhan
\ No newline at end of file diff --git a/tags/webdevelopment/index.html b/tags/webdevelopment/index.html new file mode 100644 index 0000000..a500a75 --- /dev/null +++ b/tags/webdevelopment/index.html @@ -0,0 +1 @@ +Navan Chauhan

Tagged with Web-Development

Browse all tags
\ No newline at end of file -- cgit v1.2.3