Skip to content

Instantly share code, notes, and snippets.

View igorbarinov's full-sized avatar
🌿

Igor Barinov igorbarinov

🌿
View GitHub Profile
@miguelmota
miguelmota / README.md
Last active February 28, 2023 02:10
Deploy custom Optimism rollup instructions

Instructions

Unofficial guide on deploying a custom Optimism rollup on Kovan

⚠️ Notice: Guide updated April 2021. Check out the Optimism discord for additional help and support.

Clone optimism contracts:

git clone git@github.com:ethereum-optimism/optimism.git

Steps

Software Setup

Get Source Code

go get github.com/cosmos/cosmos-sdk
anonymous
anonymous / etc.js
Created August 12, 2017 20:25
go!
const Web3 = require('web3');
const net = require('net');
const { Pool, Client } = require('pg');
let web3 = new Web3('/Users/user/repos/private_net/here.ipc', net);
const pool = new Pool({
user: 'readonly',
host: 'localhost',
@punkdata
punkdata / git-get-files-by-size.py
Last active September 25, 2022 00:36
Git this script lists the files that are larger than the size you specify. Example use: python git-find-big-files.py fix-remove-files 1000000 (file size in MBs)
#!/usr/bin/python
# run the script: python git-find-big-files.py <the branch> <file size>
# Example use: python git-find-big-files.py fix-remove-files 1000000 (this value equals 1 Megabyte)
# the Fix-remove-files specifies the branch that you are cleaning
import os, sys
def getOutput(cmd):
return os.popen(cmd).read()
@dan-zheng
dan-zheng / pickWord.py
Last active September 27, 2020 21:19 — forked from ed-flanagan/LICENSE
Oren Tirosh’s mnemonic word list
#!usr/bin/env python
import random
def main():
wordFile = open("wordList.txt", "r")
words = wordFile.readlines()[2:]
wordFile.close()
print(random.choice(words).rstrip())
@FredericJacobs
FredericJacobs / gist:1614f8eb741532c3f2cb
Created August 7, 2015 15:30
A poem by Bram Cohen, creator of BitTorrent: The Revolution Will Not Be Monetized
You are in the wrong place
You aren't going to find what you came for
You might as well go home
You aren't going to get rich here
Because the revolution will not be monetized
The revolution will not have a multi-billion dollar addressable market
The revolution will not follow a freemium business model
The revolution will not come free to play
The revolution will not enroll in YCombinator
@matthieu
matthieu / gist:d78bd39a6709c5be3dcd
Created March 7, 2015 22:43
Sending op_return transactions with BlockCypher
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Block Cypher</title>
<!-- Bootstrap -->
<link href="css/bootstrap.css" rel="stylesheet">
@laanwj
laanwj / merkl.py
Created September 24, 2014 08:53
Visualization of Satoshi's BuildMerkleTree for issue #4926
'''Visualization of Satoshi's BuildMerkleTree for issue #4926.
Usage: merkle.py <num>
'''
from __future__ import print_function, division
import itertools
def build_merkle_tree(num):
'''Build a Merkle tree according to Satoshi'''
vtx = [('%2i'%(x+1)) for x in range(num)]
@McNull
McNull / fl
Last active November 29, 2020 08:52 — forked from elentok/fl
Open current directory in forklift
#!/bin/bash
# Open current directory in forklift
# Adapted from https://gist.github.com/elentok/6218781
# Adapted from comment https://gist.github.com/elentok/6218781#comment-891115
# Added optional path argument and removed using the clipboard buffer.
set -e
if [ -z "$@" ]; then
@KartikTalwar
KartikTalwar / Documentation.md
Last active April 13, 2024 23:09
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs