Skip to content

Instantly share code, notes, and snippets.

let storage = []
let callbackFn = (index) => (error,contractData) => {
storage[index] = contractData
}
for (var i=0; i<6;i++){
web3.eth.getStorageAt(contract.address,i,callbackFn(i))
}
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as reference inside of sites-available where it will continue to be
# updated by the nginx packaging team.
@hsouna
hsouna / doh-server.conf
Created April 15, 2021 11:47
doh server configuration
# HTTP listen port
listen = [
"127.0.0.1:8053",
"[::1]:8053",
## To listen on both 0.0.0.0:8053 and [::]:8053, use the following line
# ":8053",
]
# Local address and port for upstream DNS
@hsouna
hsouna / test.html
Created January 20, 2021 22:22
This is a reproduction code for the 'test.streamroot.io/candidates/test.html'
<html>
<head>
<title>flowplayer 7.2.7 with flowplayer-hls-dna-plugin 1.1.12 from prod</title>
<!-- Flowplayer builds -->
<link rel="stylesheet" href="https://cdn.flowplayer.com/releases/native/stable/style/flowplayer.css">
<script src="https://cdn.flowplayer.com/releases/native/stable/flowplayer.min.js"></script>
<script src="https://cdn.flowplayer.com/releases/native/stable/plugins/hls.min.js"></script>