Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
echo "done"
@echohtp
echohtp / mint.ts
Last active October 12, 2023 18:58
Mint NFT With UMI
import { createUmi } from '@metaplex-foundation/umi-bundle-defaults';
import { generateSigner, percentAmount, keypairIdentity } from '@metaplex-foundation/umi';
import { mplTokenMetadata } from '@metaplex-foundation/mpl-token-metadata';
import { clusterApiUrl, Connection, LAMPORTS_PER_SOL, PublicKey} from '@solana/web3.js';
import { nftStorageUploader } from '@metaplex-foundation/umi-uploader-nft-storage'
import { createNft } from '@metaplex-foundation/mpl-token-metadata'
import bs58 from 'bs58'
const NFT_STORAGE_API = "GET A KEY AT NFT.STORAGE"
#!/bin/bash
#location to the holders file, one per line
input="/home/0xbanana/holders.txt"
#example metadata, use your own
metadatauri="https://bafkreiflfy44ytewrhyzxyly3y42s6j5rhcbw63ha4bvpcrm34fh7fpv3a.ipfs.dweb.link/"
#funded solana wallet
wallet="/home/0xbanana/wallet.json"
import { Metaplex as Metaplex } from "@metaplex-foundation/js-next";
import { Connection, clusterApiUrl, PublicKey } from "@solana/web3.js";
const connection = new Connection(clusterApiUrl("mainnet-beta"));
const metaplex = new Metaplex(connection);
let mint = new PublicKey("D2ZJKaWvS3FnvdxgNKcvbnRWgouuBsChEaJTtQ6dgmNH");
let nft = await metaplex.nfts().findNft({ mint });
console.log(nft);
/*
Output:
https://storage.googleapis.com/0xbanana/hr/frakt_airdrop/0.mp4
https://storage.googleapis.com/0xbanana/hr/frakt_airdrop/1.mp4
https://storage.googleapis.com/0xbanana/hr/frakt_airdrop/2.mp4
https://storage.googleapis.com/0xbanana/hr/frakt_airdrop/3.mp4
https://storage.googleapis.com/0xbanana/hr/frakt_airdrop/4.mp4
https://storage.googleapis.com/0xbanana/hr/frakt_airdrop/5.mp4
https://storage.googleapis.com/0xbanana/hr/frakt_airdrop/6.mp4
https://storage.googleapis.com/0xbanana/hr/frakt_airdrop/7.mp4
https://storage.googleapis.com/0xbanana/hr/frakt_airdrop/8.mp4
https://storage.googleapis.com/0xbanana/hr/frakt_airdrop/9.mp4
@echohtp
echohtp / index.html
Created October 22, 2020 18:53
Gmail loading animation October 2020
<html>
<head>
<title>Gmail loading animation Fall 2020</title>
<meta name="description" content="This is the HTML and CSS for Google's Gmail loading icon, Fall 2020.">
<style>
body {
margin: 0;
width: 100%;
height: 100%
@echohtp
echohtp / main.tf
Created October 9, 2020 22:23
Global honeypot terraform @0xbanana
variable "project_name" {
type = string
}
variable "sensor_machine_type" {
type = string
}
variable "sensor_startup_script" {
type = string
@echohtp
echohtp / google.tokengen.tf
Created September 2, 2020 01:01
Make a google bucket using terraform and an account that can generate service tokens.
provider "google" {
version = "~> 2.0, >= 2.5.1"
alias = "tokengen"
}
data "google_client_config" "default" {
provider = "google.tokengen"
}
data "google_service_account_access_token" "sa" {
provider = "google.tokengen"
target_service_account = "[email protected]"
@echohtp
echohtp / main.tf
Created September 1, 2020 02:22
0xBanana DFIR Lab Terraform
### VARIABLE DECLARATIONS
variable "project_name" {
type = string
}
variable "region_name" {
type = string
}
variable "zone_name" {
type = string
}