Skip to content

Instantly share code, notes, and snippets.

# You'll need to pip install web3 for this, everything else should come as standard
# Works as 'python snipertech.py {target-casesensitive} {sharesToBuy-1_to_9} {maximum_total_amount_in_ETH}
# e.g. python snipertech.py functi0nZer0 1 0.4
# Loops in ten second increments to try and buy your shares if they don't exist on FriendTech yet, then crashes out
# Adjust loop length on line 86 if you want to be less frequent - if they already exist, it just buys and dies.
import requests
@BlockmanCodes
BlockmanCodes / 01_deployContracts.js
Created May 31, 2023 12:24
Uniswap V3: protocol fees
const { ContractFactory, utils } = require("ethers")
const WETH9 = require("../WETH9.json")
const fs = require('fs');
const { promisify } = require('util');
const artifacts = {
UniswapV3Factory: require("@uniswap/v3-core/artifacts/contracts/UniswapV3Factory.sol/UniswapV3Factory.json"),
SwapRouter: require("@uniswap/v3-periphery/artifacts/contracts/SwapRouter.sol/SwapRouter.json"),
NFTDescriptor: require("@uniswap/v3-periphery/artifacts/contracts/libraries/NFTDescriptor.sol/NFTDescriptor.json"),
INFURA_URL_TESTNET=
WALLET_ADDRESS=
WALLET_SECRET=
@andrekorol
andrekorol / ensDomainTransfer.js
Last active July 19, 2023 05:35
Flashbots ENS domain transfer
const hre = require('hardhat');
const { map } = require('underscore');
require('dotenv').config();
const {
FlashbotsBundleProvider,
} = require('@flashbots/ethers-provider-bundle');
const ENS = require('./ENSABI.json');
@webmaster128
webmaster128 / TOUR_COMSJS_STARGATE.md
Last active March 10, 2025 03:18
CosmJS + Stargate – A guided tour

Support for Cosmos SDK Stargate in CosmJS has been ongoing work for several months now. Stargate is released and CosmJS is here to connect to it.

Starting points

Let's explore what is new for Stargate support:

@jotto
jotto / find-defi-assets-and-exchanges.js
Last active January 31, 2022 08:36
prints TSV of defi assets and exchange they're on
// prerequisites: node.js installed on your computer
// step 1: make a directory on your computer called "defi-assets-and-their-exchanges"
// step 2: copy and paste this file into that directory, call it "index.js"
// step 3: npm install --save got
// step 4: paste your messari API key into the empty string below
// step 5: node index.js
const YOUR_PERSONAL_MESSARI_API_KEY = "";
const got = require("got");
@0age
0age / MetamorphicDelegatorFactory.sol
Last active February 9, 2025 08:15
Deploy (and redeploy) contracts to known addresses
pragma solidity 0.5.8;
/**
* @title Metamorphic Delegator Factory
* @author 0age
* @notice This contract creates metamorphic contracts, or contracts that can be
* redeployed with new code to the same address. First, it deploys a contract
* with the initialization code of the contract you want to deploy stored in its
* RUNTIME code. Then, it deploys the contract, which retrieves the address of
@rexovas
rexovas / Ubuntu 16.04 ZEN Secure Nodes Automated Setup.txt
Last active December 17, 2018 17:59
Ubuntu 16.04 ZEN Secure Nodes Automated Setup
#This script was written by REXOVAS to automate 90% of a ZEN Secure Node setup process for an IPv4 node.
#Parts of this script were adapted from a script by github user rnkhouse
#rnkhouse script found here: https://gist.github.com/rnkhouse/f7f04f0cb10b596e2c6623275968a220
#Prior to running this script, please ensure that you are not signed in as root, and have completed all steps up until the copying
#of authentication key pairs in this guide: https://blockoperations.com/build-zencash-secure-node-part-1-prepare-vps/
#This script performs all actions described in the 3 guides found on blockoperations.com. It compiles zend from source.
#This script installs both Monit and PM2 and automatically configures monit to monitor zend.
#WARNING: This script is intended for use by advanced Linux users. Please read through this script thoroughly to ensure that