Skip to content

Instantly share code, notes, and snippets.

View drshrey's full-sized avatar
🎯
Focusing

Shreyas Jaganmohan drshrey

🎯
Focusing
View GitHub Profile
@drshrey
drshrey / configcaster_api_docs.md
Last active August 17, 2022 14:23
Configcaster API Docs

Configcaster API Docs

Base API URL: https://configcaster-api-production.up.railway.app

Routes:

  1. GET /configs

Request Query Parameters:

@drshrey
drshrey / summon.md
Last active July 9, 2021 23:56
summon value prop

Summon

Summon is a threshold cryptocurrency wallet signing service, built for organizations.

It is different from other wallet signing services in that it:

  • enables organizations to define rules that trigger certain thresholds of individuals to sign a transaction depending on the nature of the transaction.
  • only requires one signature for a transaction, removing the need to check/ add custom code for multi-sig support with a particular blockchain
  • makes it easy to replace and redefine thresholds while maintaining the same wallet address used for signing

Redis Extension Spec

Problem

We want to provide apps access to Redis in Staging, but providing a dedicated ElastiCache instance to each application is problematic for 2 reasons:

  1. Large financial costs where we would at worst case, double our costs.
  2. Increased complexity as any outage or problems caused by AWS would cascade onto us (and other classic external dependency problems).

We also cannot use a shared Redis ElastiCache instance across all apps as there is no built-in way to guarantee unique prefix keys

@drshrey
drshrey / project_configuration_design_doc_v1.md
Last active February 20, 2019 19:49
CodeAmp Project Configuration Design Doc

The CodeAmp Project Configuration

Problem

Currently, there is a high cost to migrating a project configuration from one environment to another. As a result, projects with large configurations rarely get migrated to other environments for development since there is so much friction in doing so.

Solution

A project-wide, environment-scoped configuration that can be applied to different environments of that project or to a completely different project as well. It will have the following properties:

Keybase proof

I hereby claim:

  • I am drshrey on github.
  • I am drshrey (https://keybase.io/drshrey) on keybase.
  • I have a public key whose fingerprint is 7FE5 170B E926 8408 9A5A 3CDC C49B BAE0 82A9 985A

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am drshrey on github.
  • I am drshrey (https://keybase.io/drshrey) on keybase.
  • I have a public key whose fingerprint is 83A0 51DE A71F F175 28AB D1B4 6855 04C9 7734 7251

To claim this, I am signing this object:

@drshrey
drshrey / random_ny_location.py
Last active November 3, 2015 05:49
get a random ny address based on borough
from flask import Flask
from flask import jsonify
from flask import request
import csv
import random
# touch 'invalid_requests' and 'valid_requests' files in same directory as script
app = Flask(__name__)
RELEVANT_BOROUGHS = ["Brooklyn", "Queens", "Manhattan", "Bronx"]