Skip to content

Instantly share code, notes, and snippets.

View pbteja1998's full-sized avatar

Bhanu Teja Pachipulusu pbteja1998

View GitHub Profile
# Title of Your Project [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Check%20out%20this%20cool%20project&url=https://github.com/Cool/Project&hashtags=project,opensource)
![Github License](https://img.shields.io/badge/license-MIT-green)
![Code Coverage](https://img.shields.io/badge/coverage-90%25-green)
![React Version](https://img.shields.io/badge/react-v16.12.0-blue.svg)
![example](https://mdn.mozillademos.org/files/10529/inspector.png)
#### Description of your project
@pbteja1998
pbteja1998 / README.md
Created December 17, 2020 14:19 — forked from MichaelCurrin/README.md
GitHub GraphQL - Get files in a repository

Get GitHub Files

Get the metadata and content of all files in a selected GitHub repo, using GraphQL

You might want to get a tree summary of files in a repo without downloading the repo, or maybe you want to lookup the contents of a file again without download the whole repo.

The approach here is to query data from GitHub using the Github V4 GraphQL API.

About the query

@pbteja1998
pbteja1998 / old_mission_control_ext_bkp.json
Last active April 9, 2021 16:41
Mission Control Chrome Extension Backup Data
{
"sites": [
{
"cid": "f481aaa1a1d07ca7abb553a2",
"date": 1616984446830,
"id": 1,
"label": "Frequently Used Sites",
"starred": false,
"websites": [
{
@pbteja1998
pbteja1998 / mission_control_ext_bkp.json
Last active May 25, 2021 04:44
Mission Control Chrome Extension Backup Data
{
"sites": [
{
"cid": "d925ac3ddb957d38a3e68612",
"date": 1617986416631,
"id": 1,
"label": "Top Sites",
"starred": false,
"websites": [
{

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@pbteja1998
pbteja1998 / middleware.ts
Created April 8, 2023 15:15 — forked from perkinsjr/middleware.ts
Using Clerk with Upstash for Middleware rate limiting and API Protection
import { getAuth, withClerkMiddleware } from "@clerk/nextjs/server";
import { NextResponse, NextFetchEvent } from "next/server";
import type { NextRequest } from "next/server";
import { Ratelimit } from "@upstash/ratelimit";
import { Redis } from "@upstash/redis";
const publicPaths = ["/", "/sign-in*", "/sign-up*", "/api/blocked"];
const ratelimit = new Ratelimit({
redis: Redis.fromEnv(),