This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |