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 | |
import ( | |
"encoding/json" | |
"reflect" | |
) | |
type Something interface{} | |
type Something1 struct { |
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 | |
import ( | |
"fmt" | |
"math/big" | |
"github.com/ethereum/go-ethereum/accounts/abi" | |
"github.com/ethereum/go-ethereum/common" | |
"github.com/ethereum/go-ethereum/common/hexutil" | |
) |
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
import sys | |
import binascii | |
import argparse | |
# base58 from https://github.com/keis/base58 | |
BITCOIN_ALPHABET = b'123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' | |
def b58decode_int( | |
v: bytes, alphabet: bytes = BITCOIN_ALPHABET |
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 | |
import ( | |
"log" | |
"time" | |
tb "gopkg.in/tucnak/telebot.v2" | |
) | |
func main() { |
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
-- Following sql will fill 1000000 rows in table tb1 | |
-- Example of generated data: | |
-- mysql> select * from tb1 limit 10; | |
-- +----+-------+-------+-----------------------+----------------------------------+ | |
-- | id | score | name | email | hash | | |
-- +----+-------+-------+-----------------------+----------------------------------+ | |
-- | 1 | 3 | Jack | ffb2@xxx.com | ba85d9424281f259f9cb2f40e63b5044 | | |
-- | 2 | 1 | Bob | 618ac14397918@xxx.com | 21205c231fa846d35b0e776c40bd3a02 | | |
-- | 3 | 3 | Jerry | 90ab@xxx.com | 72f0e82a16b28da2953026230940eac9 | | |
-- | 4 | 2 | Bob | 1450d4ff3@xxx.com | 59e131ee35fd619243ee2e68daa8f6c3 | |
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
/** | |
* Utility class to read encrypted PEM files and generate a | |
* SSL Socket Factory based on the provided certificates. | |
* | |
* Note: | |
* Java use jks (Java KeyStore) format, but openssl usual use pem format. | |
* We can convert it by keytool (jdk build-in tool), or use BouncyCastle | |
* library to handle pem. | |
* | |
* The original code is by Sharon Asher (link below). I have modified |