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-Module 'C:\Users\mono\Repos\vcpkg\scripts\posh-vcpkg' | |
Set-PSReadLineOption -EditMode Emacs | |
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete | |
# Environment variables | |
$Env:Path = "C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem" | |
# $Env:Path += ";C:\Windows\System32\WindowsPowerShell\v1.0\" |
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
extern crate evm; | |
extern crate hex; | |
extern crate primitive_types; | |
use evm::backend::{MemoryBackend, MemoryVicinity, MemoryAccount}; | |
use primitive_types::{H160, U256}; | |
use std::error::Error; | |
use std::collections::BTreeMap; | |
use evm::executor::StackExecutor; | |
use evm::{Config, Runtime, Context}; |
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
use deno_core::Op; | |
use deno_core::ZeroCopyBuf; | |
use deno_core::{CoreIsolate, StartupData}; | |
use std::str; | |
fn main() { | |
println!("v8 version: {}", deno_core::v8_version()); | |
let mut isolate = CoreIsolate::new(StartupData::None, false); |
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
const TronWeb = require('tronweb'); | |
const HttpProvider = TronWeb.providers.HttpProvider; | |
const fullNode = new HttpProvider("https://api.trongrid.io"); | |
// const fullNode = new HttpProvider("http://192.168.1.162:8090"); | |
const solidityNode = new HttpProvider("https://api.trongrid.io"); | |
const eventServer = new HttpProvider("https://api.trongrid.io"); | |
const privateKey = "3481E79956D4BD95F358AC96D151C976392FC4E3FC132F78A847906DE588C145"; | |
const tronWeb = new TronWeb(fullNode, solidityNode, eventServer, privateKey); | |
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
const TronWeb = require('tronweb'); | |
const HttpProvider = TronWeb.providers.HttpProvider; | |
const fullNode = new HttpProvider("https://api.trongrid.io"); | |
// const fullNode = new HttpProvider("http://192.168.1.162:8090"); | |
const solidityNode = new HttpProvider("https://api.trongrid.io"); | |
const eventServer = new HttpProvider("https://api.trongrid.io"); | |
const privateKey = "3481E79956D4BD95F358AC96D151C976392FC4E3FC132F78A847906DE588C145"; | |
const tronWeb = new TronWeb(fullNode, solidityNode, eventServer, privateKey); | |
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
from time import time as unix_time | |
from pprint import pprint | |
import requests | |
import hashlib | |
import base58 | |
import ecdsa | |
from eth_hash.auto import keccak as keccak_256 | |
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 requests | |
import base58 | |
import base64 | |
from pprint import pprint | |
ADDRESS = "T....your address" | |
PRIV_KEY = 'hex private key' | |
CONTRACT = "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t" # USDT |
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
# define P1_FIRST 0x00 | |
# define P1_MORE 0x80 | |
# define P1_LAST 0x90 | |
from google.protobuf.internal.decoder import _DecodeVarint32 | |
from base import parse_bip32_path | |
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
#设置终端颜色为256色 | |
set -g default-terminal "screen-256color" | |
# auto resize to smallest windows size | |
setw -g aggressive-resize on | |
# Terminal emulator window titles | |
set -g set-titles on | |
set -g set-titles-string "#T" | |
#将激活控制台的快捷键由Ctrl+b修改为Ctrl+z |
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 sys | |
import os.path | |
from datetime import datetime, timedelta | |
from pprint import pprint | |
import pytz | |
__dir__ = os.path.dirname(__file__) | |
__proj_dir__ = os.path.dirname(__dir__) | |
sys.path.insert(0, __proj_dir__) |