Skip to content

Instantly share code, notes, and snippets.

// index.js
const ethers = require("ethers");
async function countNftHolders() {
// 1) Public RPC endpoint (Cloudflare)
const provider = new ethers.JsonRpcProvider("https://rpc-endpoint");
// 2) BAYC contract and minimal ERC-721Enumerable ABI
const contractAddress = "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D";
@obynonwane
obynonwane / gist:5592187bf7fbfa7a8c418f726e908511
Created June 1, 2025 11:38 — forked from teja156/gist:8c35a05f43635da4cbd06b47c0d91e93
Commands for deploying wordpress website on AWS EC2 shown in my YouTube video
YouTube video link: https://youtu.be/8Uofkq718n8
All the commands that are executed in the above youtube video are mentioned in this gist.
1. Install Apache server on Ubuntu
sudo apt install apache2
2. Install php runtime and php mysql connector
sudo apt install php libapache2-mod-php php-mysql
3. Install MySQL server