Unofficial guide on deploying a custom Optimism rollup on Kovan
Clone optimism contracts:
git clone [email protected]:ethereum-optimism/optimism.git
Unofficial guide on deploying a custom Optimism rollup on Kovan
Clone optimism contracts:
git clone [email protected]:ethereum-optimism/optimism.git
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', |
#!/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() |
#!usr/bin/env python | |
import random | |
def main(): | |
wordFile = open("wordList.txt", "r") | |
words = wordFile.readlines()[2:] | |
wordFile.close() | |
print(random.choice(words).rstrip()) |
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 |
<!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"> |
'''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)] |
#!/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 |
rsync (Everyone seems to like -z, but it is much slower for me)