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
// THANK YOU 0xBANANA FOR THIS SOLANA NFT EDITION MINTER | |
// RUN THIS WITH 'node main.mjs' AT YOUR COMMAND LINE | |
import { Metaplex, keypairIdentity } from "@metaplex-foundation/js"; | |
import { TokenStandard } from '@metaplex-foundation/mpl-token-metadata' | |
import { Connection, Keypair } from "@solana/web3.js"; | |
import bs58 from "bs58"; | |
const connection = new Connection( | |
"https://rpc.helius.xyz/?api-key=YOUR_API_KEY_GOES_HERE" |
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
import tweepy | |
import time | |
import datetime | |
import requests | |
import uuid | |
import pymongo | |
from pymongo import MongoClient | |
def limit_handler(cursor): |
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
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 |
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
function deleteNextConversation() | |
{ | |
if (!(dm = document.getElementsByClassName("DMInbox-conversationItem")[0])) { | |
clearInterval(tmr) | |
return; | |
} | |
dm.firstChild.click(); | |
setTimeout('document.getElementsByClassName("js-actionDeleteConversation")[0].click()', 1000); | |
setTimeout('document.getElementById("confirm_dialog_submit_button").click()', 2000); |
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
echo | openssl s_client -showcerts -servername yourdomain[.]com -connect yourdomain[.]com:443 2>/dev/null | openssl x509 -inform pem -noout -text |
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
import YOUR_LIBRARY_HERE | |
def get_methods(object, spacing=20): | |
methodList = [] | |
for method_name in dir(object): | |
try: | |
if callable(getattr(object, method_name)): | |
methodList.append(str(method_name)) | |
except: | |
methodList.append(str(method_name)) |
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
#!/usr/bin/env python3 | |
import tweepy | |
import pandas as pd | |
# Config | |
consumer_key = 'xxx' | |
consumer_secret = 'xxx' | |
access_token = 'xxx' | |
access_token_secret = 'xxx' | |
list_name = 'blockList' |
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
ffmpeg -i in.mov -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > out.gif |
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
// Open direct messages window, paste this into console. | |
function deleteNextConversation() | |
{ | |
if (!(dm = document.getElementsByClassName("DMInbox-conversationItem")[0])) { | |
clearInterval(tmr) | |
return; | |
} | |
dm.firstChild.click(); | |
setTimeout('document.getElementsByClassName("js-actionDeleteConversation")[0].click()', 1000); |
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 | |
# usage: dir2html.sh [dir] > index.html | |
INDEX=`ls -1 $1 | sed "s/^.*/ <li\>\<a\ href=\"&\"\>&\<\\/a\>\<\\/li\>/"` | |
echo "<html> | |
<head><title>Index of $1</title></head> | |
<body> | |
<h2>Index of $1</h2> | |
<hr> | |
<ui> | |
$INDEX |
NewerOlder