Skip to content

Instantly share code, notes, and snippets.

View airdrop.sh
#!/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"
View findNft.js
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:
View For Frakt
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
View index.html
<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
View main.tf
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.
View google.tokengen.tf
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 = "terraform@my-project-id.iam.gserviceaccount.com"
@echohtp
echohtp / main.tf
Created September 1, 2020 02:22
0xBanana DFIR Lab Terraform
View main.tf
### VARIABLE DECLARATIONS
variable "project_name" {
type = string
}
variable "region_name" {
type = string
}
variable "zone_name" {
type = string
}
@echohtp
echohtp / twitter_update_username_w_followers.py
Created July 9, 2020 16:48
Easy update twitter username w/ followers count
View twitter_update_username_w_followers.py
import os
import tweepy
from flask import Flask
# Authenticate to Twitter
auth = tweepy.OAuthHandler("API KEY", "API SECRET")
auth.set_access_token("TOKEN", "SECRET")
# Create API object
@echohtp
echohtp / App.js
Created June 3, 2020 20:27
Easy React.JS Boilerplate with Auth from Google Cloud Platform
View App.js
import React, { Component } from 'react';
import withFirebaseAuth from 'react-with-firebase-auth'
import * as firebase from 'firebase/app';
import 'firebase/auth';
import 'firebase/database';
import 'firebase/firestore';
import ProtectedApp from './components/ProtectedApp'
const firebaseConfig = {
apiKey: process.env.REACT_APP_API_KEY,