Skip to content

Instantly share code, notes, and snippets.

View amilz's full-sized avatar

amilz amilz

View GitHub Profile
@ChewingGlass
ChewingGlass / verify.sh
Last active December 18, 2024 18:46
Verify all anchor programs
#!/bin/bash
# Function to verify a single program
verify_program() {
local program_dir=$1
local max_attempts=5
local attempt=1
# Get the base name and convert hyphens to underscores
library_name=$(basename "$program_dir" | tr '-' '_')
#!/bin/bash
while true
do
echo "Running"
ore --rpc "$1" --keypair "$2" --priority-fee 1000 mine --threads 4
echo "Exited"
done
@staccDOTsol
staccDOTsol / recovered 1.23 sol in seconds <3
Last active August 2, 2022 05:11
recovered 1.23 sol in seconds <3
https://gist.github.com/staccDOTsol/e2106b3c12433d3c93016c890a84b1c6
@dvcrn
dvcrn / index.ts
Last active February 22, 2025 05:34
get metadata from metaplex
// EDIT: It's now much easier to get metadata from metaplex using the js package.
// Check the new gist here: https://gist.github.com/dvcrn/a1b0ff0a0b4b3ab02aff44bc84ac4522
// I didn't want to edit this gist because a lot of people found it helpful to see how to manually decode a account
import * as web3 from "@solana/web3.js";
import * as metadata from "./metadata"; // see metadata.ts
const tokenAddress = new web3.PublicKey(
"CxkKDaBvtHqg8aHBVY8E4YYBsCfJkJVsTAEdTo5k4SEw"
);