This file contains 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
#!/usr/bin/python3 | |
import json | |
import base64 | |
import sys | |
import hashlib | |
from construct import Struct, Byte, Int16ub, Int64ub, Enum, Bytes, Int24ub, this, GreedyBytes, GreedyRange, Terminated | |
MerkleTreeHeader = Struct( | |
"Version" / Byte, | |
"MerkleLeafType" / Byte, |
This file contains 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
<?php | |
function fastLeakage(){ | |
$cert = "-----BEGIN CERTIFICATE----- | |
MIIE4jCCAsqgAwIBAgIHBZCisfbbfTANBgkqhkiG9w0BAQUFADB/MQswCQYDVQQG | |
EwJHQjEPMA0GA1UECAwGTG9uZG9uMRcwFQYDVQQKDA5Hb29nbGUgVUsgTHRkLjEh | |
MB8GA1UECwwYQ2VydGlmaWNhdGUgVHJhbnNwYXJlbmN5MSMwIQYDVQQDDBpNZXJn | |
ZSBEZWxheSBJbnRlcm1lZGlhdGUgMTAeFw0xOTA4MjExNjAyMDhaFw0yMjEwMTMw | |
NTQ0MjdaMHUxCzAJBgNVBAYTAkdCMQ8wDQYDVQQHDAZMb25kb24xOjA4BgNVBAoM |
This file contains 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
WITH items AS | |
(SELECT ["coffee", "milk" ] as list, ["cake", "e", "milk"] as list2) | |
SELECT ( | |
SELECT ANY_VALUE(list) FROM ( | |
SELECT * FROM UNNEST(list) list | |
INTERSECT DISTINCT | |
SELECT * FROM UNNEST(list2) list | |
) | |
) FROM items |
This file contains 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
import random | |
grammar = { | |
"Expr" : ["Expr", "Expr + Term", "Expr - Term", "Term"], | |
"Term" : ["Term * Factor", "Term / Factor", "Factor"], | |
"Factor" : ["-Integer", "(Expr)", "Integer", "Integer.Integer"], | |
"Integer" : ["Digit", "IntegerDigit"], | |
"Digit" : ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"] | |
} |