Skip to content

Instantly share code, notes, and snippets.

View kolya-t's full-sized avatar

Nikolay Toporkov kolya-t

View GitHub Profile
@kolya-t
kolya-t / do-subnets.sh
Created November 21, 2018 09:44
Script will create subnets directory with subnets
#!/bin/sh
# script will create 2 dirs iprange and subnets
# iprange dir will contain iprange tool
# subnets dir will contain GeoIP subnets files
# install iprange
mkdir iprange
cd iprange
wget https://raw.githubusercontent.com/haproxy/haproxy/master/contrib/iprange/Makefile
#include <iostream>
#include <string>
#include <vector>
using namespace std;
struct Note {
string firstName;
string lastName;
string phone;
#include <iostream>
#include <array>
#include <algorithm>
#include <cmath>
using namespace std;
template <class T, std::size_t N>
ostream& operator<<(ostream& o, const array<T, N>& arr)
{
@kolya-t
kolya-t / package.json
Last active January 29, 2019 10:07
tron-accounts
{
"main": "tron-accounts.js",
"scripts": {
"start": "node tron-accounts.js"
},
"dependencies": {
"axios": "^0.18.0",
"progress": "^2.0.3"
}
}
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "ethAddress",
"type": "address"
},
{
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "tronAddress",
"type": "address"
}
],
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "tronAddress",
"type": "address"
}
],
INFURA_API_KEY=c793163094c44d72918d61fbefe050f8
MNEMONIC="caught chess glide pill dream print car neutral immense scrap neglect adult"
0x60806040523480156200001157600080fd5b506040805190810160405280600c81526020017f4d656469636920546f6b656e00000000000000000000000000000000000000008152506040805190810160405280600381526020017f4d444900000000000000000000000000000000000000000000000000000000008152506012826000908051906020019062000098929190620002b2565b508160019080519060200190620000b1929190620002b2565b5080600260006101000a81548160ff021916908360ff160217905550505050620000ea33620000f0640100000000026401000000009004565b62000361565b620001148160096200015a6401000000000262002a84179091906401000000009004565b8073ffffffffffffffffffffffffffffffffffffffff167f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f660405160405180910390a250565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156200019757600080fd5b620001b282826200021d640100000000026401000000009004565b151515620001bf57600080fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020
[
{
"constant": true,
"inputs": [
{
"name": "_addr",
"type": "address"
},
{
"name": "_index",