Skip to content

Instantly share code, notes, and snippets.

View joshLong145's full-sized avatar
πŸͺ€

Bean joshLong145

πŸͺ€
View GitHub Profile
@joshLong145
joshLong145 / setup.sh
Last active January 25, 2025 01:59 — forked from bradp/setup.sh
New Mac Setup Script
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/joshLong145/ssh \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install
@joshLong145
joshLong145 / index.ts
Last active December 13, 2023 18:04
Session authentication for signatures
import {
LitAuthClient,
StytchOtpProvider,
} from "@lit-protocol/lit-auth-client/src/index.js";
import prompts from "prompts";
import * as stytch from "stytch";
import { LitNodeClientNodeJs } from "@lit-protocol/lit-node-client-nodejs";
import { ProviderType, AuthMethodScope } from "@lit-protocol/constants";
import { LitAbility, LitPKPResource } from "@lit-protocol/auth-helpers";
const MINT_COUNT = 200;
const RELAY_URL = "http://localhost:8081/auth/google";
let success = 0;
let failed = 0;
let timerMap: Record<number, any> = {};
const batchRequests = async () => {
for (let i = 0; i < MINT_COUNT; i++) {
let start = Date.now();
timerMap[i] = {