Skip to content

Instantly share code, notes, and snippets.

View snpranav's full-sized avatar
😎
Building fun stuff :D

Pranav Shikarpur snpranav

😎
Building fun stuff :D
View GitHub Profile
@snpranav
snpranav / nginx-server-configuration-file
Last active February 28, 2019 11:09
Nginx server configuration file for running Ghost blog in a subdirectory as a proxy (In reference to my blog post - https://snpranav.com/blog/)
server {
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name domain.tld www.domain.tld;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
@snpranav
snpranav / docker-install.sh
Last active May 8, 2020 02:47
This script installs docker and docker-compose on most linux distributions.
# This script has been compiled by using scripts from docker.com
curl -fsSL https://get.docker.com -o get-docker.sh;
sh get-docker.sh;
# Installing docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose;
sudo chmod +x /usr/local/bin/docker-compose
[00:05.320 --> 00:07.880] The standing postures in the Ashtanga Yoga Method
[00:07.880 --> 00:10.500] teach you balance and connection into the core.
[00:10.500 --> 00:13.560] Let's take a look at Utthita Hasta Parangusthasana,
[00:13.560 --> 00:16.240] balancing on one leg with a firm connection
[00:16.240 --> 00:18.000] into the interior space of the pelvis.
[00:18.000 --> 00:19.780] If you've never tried this before,
[00:19.780 --> 00:22.840] start with your feet next to each other in Samastitihi,
[00:22.840 --> 00:24.560] that basic standing position
[00:24.560 --> 00:27.380] where the base of the big toes is together.
[00:27.380 --> 00:29.400] Then press your feet firmly into the ground
@snpranav
snpranav / technica-poa-collection.json
Last active October 15, 2022 17:48
Technica Proof of Attendance NFT Meta Data
{
"name": "Technica Talk Proof of Attendance NFTs",
"description": "This is the official collection of NFTs minted for the attendees of Technica Crypto Talk on 15th October, 2022 by Nabeela Ibrahim and Pranav Shikarpur.",
"image": "https://ipfs.io/ipfs/QmVaT7eKHnFTSxQZgvJiPvy3EeUZisuADrRtE5JCpPqp77",
"external_link": "https://defiswag.shello.tech",
"seller_fee_basis_points": 1000,
"fee_recipient": "0xd91Bc5b5E20D666440F1512C2e3464AFa57AEbef"
}

Demos Repo Structure

The goal is to be able to have the least about of GitHub repositor architectureies under one organization. In enineering teams this is usually referred to as a MonoRepo architecture.

Repository Name - thalesgroup/ciphertrust-learn Docusaurus Hosting URL - thalesgroup.github.io/ciphertrust-learn/

(Note all directories will have README files with links pointing tothe docusaurus demo)
Directory Structure:

docs/ (Host Docusaurus Website)

3-line GPT Redaction Python Demo

Run on Replit

To test this python script, you need to have a bunch of pre-requisites:

  1. Created a Pangea Account
  2. Get a Pangea Redact token
  3. Create a OpenAI account and get the OpenAI key

Step 1 - Set the environment secrets

3-line GPT Redaction JavaScript Demo

Run on Replit

To test this JS script, you need to have a bunch of pre-requisites:

  1. Created a Pangea Account
  2. Get a Pangea Redact token
  3. Create a OpenAI account and get the OpenAI key

Step 1 - Set the environment secrets