Skip to content

Instantly share code, notes, and snippets.

View ayenisholah's full-sized avatar

Shola Ayeni ayenisholah

View GitHub Profile
@ayenisholah
ayenisholah / System Design.md
Created September 23, 2019 12:19 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@ayenisholah
ayenisholah / installation.yaml
Created December 2, 2024 09:35
NFT Bidding Bot: Multi-marketplace (OpenSea, Blur, MagicEden) automation system. Features: real-time WebSocket bidding, distributed queue (BullMQ), trait/collection strategies, auto-outbid. Stack: TypeScript/Express, Redis, MongoDB. Includes health monitoring & secure key management.
services:
server:
image: ayenisholah/bidding-bot-server:latest
platform: linux/amd64
restart: always
ports:
- "3003:3003"
environment:
- MONGODB_URI=mongodb://mongodb:27017/BIDDING_BOT
- CLIENT_URL=http://localhost:3001/
@ayenisholah
ayenisholah / install.sh
Last active March 1, 2025 16:56
Automated installation script for the NFT Bidding Bot. It checks and installs Docker and Docker Compose, sets up the project directory, downloads necessary files, creates a .env file, pulls Docker images, and starts services. Includes health checks and useful commands.
#!/bin/bash
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m'
# Repository and version information
REGISTRY="ayenisholah"
import { FACTORY_ABI, PUBLIC_CLIENT } from "@/constants";
import { generateNonceFromPubKey } from "@/utils";
import { NextRequest, NextResponse } from "next/server";
import { concat, Hex } from "viem";
import { WebAuthn } from "@/libs/web-authn";
import { P256Credential, PublicKey, User } from "@/interface";
export async function POST(request: NextRequest) {
const body = await request.json()