Skip to content

Instantly share code, notes, and snippets.

View ankushagarwal's full-sized avatar
💭
🙄

Ankush Agarwal ankushagarwal

💭
🙄
  • Facebook
  • San Francisco
View GitHub Profile
{
"keys": [
{
"kty": "RSA",
"e": "AQAB",
"use": "sig",
"kid": "HjTgfO2cMiZX0cE2F1JQIp3JyWLtWa5Pj39tdo5z0Bw",
"n": "wJ7eBP3a45zJto_XaG7RMFFTXhQPS317ROM_A9tX4Okmq_y-bL69Diw6lXb71qKt85I7LAq4sj4ketxawIa6av6Y3vHk0t4BkI-lVnHpzsqL_1TqZaCYa3Q_zmATV8uV6m5VXPuqasIHbn_v09EBpc31yA0zH9Jg99CouTwfL7nEnidcuH1z56_ZNgzMvUma6fpdAkI-vgNIBkuMH0TzrHjUADyElh_QNArI5mf2Gs2YvCrW1BvSoXFBdLh1Zcqs0930GKWWUWjvmrEngSxXe0ltrY1wecYFlQ9A5GgGbQzIoYuhvPHJckHejfTtq4w8sg27HK1mT1QybZNQHeAf_hTgkycjMxWBzTeItZbBjmeHkoHj5aRdmeBZdbWVHGgennuVcTsImEWHh6Dw6t6bTC_PYf_SE1hsqrAiVqY6tRyisdzb-hngtt6J8k9m9JO0x19Dy9zOx-uc_o2VmPL25gkxi_gJvq-rzMwxQJDpP0rdH3n3XNKl2dOQMh3--PxgskLQYh7RiboJm5kQhgOL_Fd-fv__zpGl_4qHObpOo6Xizg5JnRyTf7s7qlmTBcb377bD8JAWxTOD8tlDcHpdU9sKhF7cG5rzvqGyYzQpraVEYjNJ7mT0tKxNHymYm-bk-LnwJgs6PBpe17MFqnXGMZV7cgbquovLXR2sUA_2mzc",
"alg": "RS256"
}
{
kty: 'RSA',
n: 'tbI6E_sXyyO5cmxUoqSe4D3yMNBZFMQlTFxiXkckU577K0ZLYbKIZ1-imJ01Kdm6xTTNnXhuXhNW8esoLrEfmHnZd_Qwfmr-7Dy9gJDqmMsKcQumcj7N0NdlELnXWvB8WUacU2u2rgVrCgG2Vo9lM0dROQZF7PQbLqaVQnBBt7alM-imAXCc_2jqyH2TJnU0cCbHSvjQ4imQv8HYqF6a2lzCFCc1Vr8Mko79Ve0epFEEhgqFHDYSQojGiVL_BxcWzwOvLYdb2UkfKB7Xt4ApO2yrOKGEv8NnTD-QoTXNa_J41pABxSa_MKkKSHx0wJ8cOPUrqgRXY70PulHDoUzmnw',
e: 'AQAB'
}
@ankushagarwal
ankushagarwal / openai_whisper_api.py
Created January 16, 2023 06:55
Open AI Whisper API
import requests
from requests_toolbelt import MultipartEncoder
import os, random, string
# Some basics
req_url = "https://api.openai.com/v1/engines/audio-transcribe-001/transcriptions"
openai_key = 'OPEN_AI_KEY_GOES_HERE'
# Load file as bytes and add it as a form field
file_path = "test.mp3"
file = open(file_path, "rb").read()
@ankushagarwal
ankushagarwal / Odyssey Podcast Summary.md
Created January 2, 2023 15:39
Odyssey Podcast Summary

Part 1/9:

Summary:

  1. As a kid, the speaker collected baseball cards, football cards, and basketball cards- emphasizing that collecting is an emotionally and intrinsically valuable endeavor.
  2. Brands have primarily found success in creating physical goods or providing discounts to engage customers with their products, both of which are expensive endeavors.
  3. Forum Three is working on creating digital assets as part of loyalty programs that can be emotionally valued but also have utility like coupons and access passwords- making it a powerful combination for brands to use.
  4. Adam Brockman was the Chief Digital Officer at Starbucks in 2008/2009 when the company was looking for ways to reinvent itself during The Great Recession period; his mandate was to create a great digital strategy that would help drive the company’s business forward and enhance customer relationships with Starbucks products and services.
  5. At this time, there were hesitations around taking risks with new technologies since Starb
# Dillinger
[![N|Solid](https://cldup.com/dTxpPi9lDf.thumb.png)](https://nodesource.com/products/nsolid)
[![Build Status](https://travis-ci.org/joemccann/dillinger.svg?branch=master)](https://travis-ci.org/joemccann/dillinger)
Dillinger is a cloud-enabled, mobile-ready, offline-storage, AngularJS powered HTML5 Markdown editor.
- Type some Markdown on the left
- See HTML in the right
apiVersion: v1
kind: Pod
metadata:
name: task-pv-pod
spec:
volumes:
- name: task-pv-storage
persistentVolumeClaim:
claimName: storage-volume-libra-testnet-prometheus-server-0
containers:
apiVersion: v1
kind: Pod
metadata:
name: cluster-test-maintenance
labels:
app: cluster-test
spec:
nodeSelector:
nodeType: clustertest
restartPolicy: Never

Keybase proof

I hereby claim:

  • I am ankushagarwal on github.
  • I am ankush (https://keybase.io/ankush) on keybase.
  • I have a public key whose fingerprint is 9A19 8C3D 67BA BF7E 5351 1F7B EDB0 8506 732B 28D9

To claim this, I am signing this object:

@ankushagarwal
ankushagarwal / sleepsort.bash
Created December 26, 2014 06:58
Sleep Sort!!
#!/bin/bash
function f() {
sleep "$1"
echo "$1"
}
while [ -n "$1" ]
do
f "$1" &
shift
done

Keybase proof

I hereby claim:

  • I am ankushagarwal on github.
  • I am ankushio (https://keybase.io/ankushio) on keybase.
  • I have a public key whose fingerprint is 1010 0385 B018 8F88 7028 5D8E AA51 4AED F0C7 E266

To claim this, I am signing this object: