import time
import logging
from web3 import Web3
web3 = Web3(Web3.HTTPProvider('https://nd-483-012-860.p2pify.com')) # your node
def profile(func):
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 18.936785] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6 | |
[ 18.945449] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Mar 23 2020 02:19:54 version 7.45.206 (r725000 CY) FWID 01-88ee44ea | |
[ 19.711692] usb 1-1.3: new high-speed USB device number 3 using xhci_hcd | |
[ 19.818618] usb 1-1.3: New USB device found, idVendor=0bda, idProduct=9210, bcdDevice=20.01 | |
[ 19.818628] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 | |
[ 19.818633] usb 1-1.3: Product: RTL9210--VB | |
[ 19.818638] usb 1-1.3: Manufacturer: Realtek | |
[ 19.818643] usb 1-1.3: SerialNumber: 012345689321 | |
[ 19.996580] usb-storage 1-1.3:1.0: USB Mass Storage device detected | |
[ 19.998010] scsi host0: usb-storage 1-1.3:1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"project_subnets": [{"subnet_name": "x", "subnet_ip": "y", "subnet_region": "z"}], | |
"gke_master_ranges": {"az1": [{"ip_cidr_range": "a", "range_name": "b"}], "az2": [{"ip_cidr_range": "c", "range_name": "d"}, {}]}, | |
"secondary_ranges": {"az1": [{"ip_cidr_range": "m", "range_name": "d"}], "az2": [{"ip_cidr_range": "o", "range_name": "p"}]} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
djui/alias-tips | |
caarlos0/zsh-mkc | |
# annotations are also allowed: | |
robbyrussell/oh-my-zsh path:plugins/kubectl | |
robbyrussell/oh-my-zsh path:plugins/ansible | |
robbyrussell/oh-my-zsh path:plugins/colorize | |
robbyrussell/oh-my-zsh path:plugins/git | |
robbyrussell/oh-my-zsh path:plugins/golang | |
robbyrussell/oh-my-zsh path:plugins/helm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
I hereby claim:
- I am hayorov on github.
- I am hayorov (https://keybase.io/hayorov) on keybase.
- I have a public key ASAdUe15xOP9kKCjJjgWCqCyG7roy-z06OfoWvCaSJ-FtQo
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl get secrets -o json --namespace old | jq '.items[].metadata.namespace = "new"' | kubectl create -f - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
//WARNING - this chaincode's ID is hard-coded in chaincode_example04 to illustrate one way of | |
//calling chaincode from a chaincode. If this example is modified, chaincode_example04.go has | |
//to be modified as well with the new ID of chaincode_example02. | |
//chaincode_example05 show's how chaincode ID can be passed in as a parameter instead of | |
//hard-coding. | |
import ( | |
"fmt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node: | |
orderer: | |
id: nd-418-523-261 | |
genesisblock: CiIaIDSi/8D8IsjPXBO6Ez0etcrG5g1yhcE+BvJmlqEKxMNfEvA2Cu02Cuo2CnkKWwgBEAEaBgiKxKrdBSILdGVzdGNoYWluaWQqQDc5MGRmM2VkYzM3N2RhMjRmOWI2NzAzOTAxMDUwYmRlYzdjMTRlOGE1YzU1YWJmMTQ1MDQyNjBiMjY0NjcwMjASGhIYvDvFo6g5JPXvRXaBcXiugbAwvyl+vcG5Euw1Cuk1EuY1Eo0aCgdPcmRlcmVyEoEaEtYXCgpyZy04MzctMzgwEscXGpIWCgNNU1ASihYS/xUS/BUKDnJnLTgzNy0zODAtTVNQErgHLS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNrakNDQWppZ0F3SUJBZ0lSQU9USzBpcHZhK3Y5WGY0UnpNd0F0UTR3Q2dZSUtvWkl6ajBFQXdJd2daa3gKQ3pBSkJnTlZCQVlUQWxWVE1STXdFUVlEVlFRSUV3cERZV3hwWm05eWJtbGhNUll3RkFZRFZRUUhFdzFUWVc0ZwpSbkpoYm1OcGMyTnZNU1l3SkFZRFZRUUtFeDFTUnkwNE16Y3RNemd3TG1sdWRDNWphR0ZwYm5OMFlXTnJMbU52CmJURTFNRE1HQTFVRUF4TXNUa1F0TkRFNExUVXlNeTB5TmpNdVVrY3RPRE0zTFRNNE1DNXBiblF1WTJoaGFXNXoKZEdGamF5NWpiMjB3SGhjTk1UZ3dPVEkxTVRZek1qSTVXaGNOTWpnd09USXlNVFl6TWpJNVdqQ0JtVEVMTUFrRwpBMVVFQmhNQ1ZWTXhFekFSQmdOVkJBZ1RDa05oYkdsbWIzSnVhV0V4RmpBVUJnTlZCQWNURFZOaGJpQkdjbUZ1ClkybHpZMjh4SmpBa0JnTlZCQW9USFZKSExUZ3pOeTB6T0RBdWFXNTBMbU5vWVdsdWMzUmhZMnN1WTI5dE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2018-10-04 07:18:30.982 UTC [protoutils] checkSignatureFromCreator -> DEBU 1144 exits successfully | |
2018-10-04 07:18:30.982 UTC [protoutils] validateChaincodeProposalMessage -> DEBU 1145 validateChaincodeProposalMessage starts for proposal 0xc42032acd0, header 0xc420373e30 | |
2018-10-04 07:18:30.982 UTC [protoutils] validateChaincodeProposalMessage -> DEBU 1146 validateChaincodeProposalMessage info: header extension references chaincode name:"cscc" | |
2018-10-04 07:18:30.982 UTC [endorser] preProcess -> DEBU 1147 [][e478c216] processing txid: e478c2163a77b55f750d897cafc9046b34d78f68fb0d134a8c377ad3b617bcc4 | |
2018-10-04 07:18:30.982 UTC [endorser] SimulateProposal -> DEBU 1148 [][e478c216] Entry chaincode: name:"cscc" | |
2018-10-04 07:18:30.982 UTC [endorser] callChaincode -> DEBU 1149 [][e478c2163a77b55f750d897cafc9046b34d78f68fb0d134a8c377ad3b617bcc4] Entry chaincode: name:"cscc" version: 1.2.0 | |
2018-10-04 07:18:30.982 UTC [ccprovider] NewCCContext -> DEBU 114a NewCCCC(chain=,chaincode=cscc,version=1.2.0,txid=e478c2163a |
NewerOlder