Skip to content

Instantly share code, notes, and snippets.

View tsudmi's full-sized avatar
❄️

Dmitri Tsumak tsudmi

❄️
  • StakeWise
  • Tallinn, Estonia
  • X @tsudmi
View GitHub Profile
import { useMemo } from 'react';
import { BigNumber } from '@ethersproject/bignumber';
import { useWeb3React } from '@web3-react/core';
import { Contract } from '@ethersproject/contracts';
import useSWR from 'swr';
const uniswapV3PositionManagerAbi = [
{
inputs: [
{
pragma solidity 0.7.5;
contract SystemContract {
// Address of the recipient extracted from ETH1 withdrawal credentials.
address payable public recipient;
// Whether the balance was already withdrawn.
bool public withdrawn;
// A new instance is deployed for every validator with ETH1 withdrawal credentials when it becomes withdrawable.
@tsudmi
tsudmi / PyTorStemPrivoxy.md
Created April 28, 2018 22:19 — forked from KhepryQuixote/PyTorStemPrivoxy.md
Python script to connect to Tor via Stem and Privoxy, requesting a new connection (hence a new IP as well) as desired.

Crawling Anonymously with Tor in Python

adapted from the article "Crawling anonymously with Tor in Python" by S. Acharya, Nov 2, 2013.

The most common use-case is to be able to hide one's identity using TOR or being able to change identities programmatically, for example when you are crawling a website like Google and you don’t want to be rate-limited or blocked via IP address.

Tor

Install Tor.