Skip to content

Instantly share code, notes, and snippets.

View ScreamingHawk's full-sized avatar
🦄
Making magic

Michael Standen ScreamingHawk

🦄
Making magic
View GitHub Profile
@CoolCatsNFTPublic
CoolCatsNFTPublic / snapShop.js
Created July 25, 2021 17:15
Snapshotting Opensea collections
async function snapShot(slug, address, totalTokens) {
const API_KEY = ""
// Step 1 - Pagination
const pages = Math.ceil(totalTokens / 50); // Paginate to account for OpenSea api call limits.
let offSet = 0;
let num = 0;
let totalOwned = 0;
let foundTokens = 0;
#!/bin/bash
set -euo pipefail
# Directory setup
APP_DIR="${HOME}/Applications"
ICON_DIR="${HOME}/.local/share/icons"
DESKTOP_DIR="${HOME}/.local/share/applications"
BIN_DIR="${HOME}/.local/bin"