Skip to content

Instantly share code, notes, and snippets.

@kaichen
kaichen / trc10.transfer.json
Created October 18, 2022 13:41
tron tx response
{
"ret": [
{
"contractRet": "SUCCESS"
}
],
"signature": [
"e788847a9b215d40b3abff32fd33724f2089e948273c6597f0431446dc0863437c18163cf8b0a3ab0827eb57a0bbae9fce7daa0ad9dd3c8f0406d55f132b851000"
],
"txID": "78758c5303a49b7b9d010853b8774c55a554b57a26060190e3e338cb70043081",
@kaichen
kaichen / allocate.json
Created February 22, 2016 02:09
雪球抓包结果
/* GET /allocate.json HTTP/1.1 */
{
"api": ["124.250.3.102", "124.250.3.103", "101.201.175.228", "182.92.251.113"],
"expires": 300,
"fund": ["124.250.3.84", "124.250.3.85"],
"https": true,
"im": ["124.250.3.78:8080", "124.250.3.78:80", "124.250.3.78:8400", "124.250.3.79:8080", "124.250.3.78:443", "124.250.3.79:443", "124.250.3.78:8443", "124.250.3.79:8400", "124.250.3.79:8443", "124.250.3.79:80"],
"pingan": ["124.250.3.102", "124.250.3.101"],
"promo": ["124.250.3.102", "124.250.3.103"],
"stock": ["182.92.251.113", "101.201.175.228", "124.250.3.102", "124.250.3.103"],
@kaichen
kaichen / provinces_and_cities.yml
Created October 11, 2012 10:02
中国省市数据
-
province: 北京市
cities:
- 北京市
-
province: 天津市
cities:
- 天津市
-
province: 上海市
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-sessionist'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
@kaichen
kaichen / chef_solo_bootstrap.sh
Created August 30, 2012 01:47 — forked from ryanb/chef_solo_bootstrap.sh
Bootstrap Chef Solo
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev
cd /tmp
wget http://ruby.taobao.org/mirrors/ruby/1.9/ruby-1.9.3-p194.tar.gz
tar -xvzf ruby-1.9.3-p194.tar.gz
cd ruby-1.9.3-p194/
./configure --prefix=/usr/local --disable-install-rdoc
make
{
"app_state": {
"accounts": [
{
"account_number": "679",
"address": "cosmos1qqp837a4kvtgplm6uqhdge0zzu6efqgujllfst",
"coins": [
{
"amount": "60091022",
"denom": "uatom"
@kaichen
kaichen / get_actions.json
Created December 26, 2018 07:51
eos history api
{
"actions": [
{
"_id": "5c232c16b5035bc1a6dc7585",
"receipt": {
"receiver": "luckymearena",
"act_digest": "f7b0b39cac563a1ab054a192ef017a7d45e34e07a12b49e0ed29bd117f3448ba",
"global_sequence": 3310712726,
"recv_sequence": 2827,
"auth_sequence": [
@kaichen
kaichen / luxe-ens-management.md
Last active November 6, 2018 06:25
how to integrate with luxe IANA

luxe ens managment

data structure:

mapping(uint=>mapping(address=>bool)) public registrars; // Maps IANA IDs to authorised accounts
mapping(bytes32=>uint) public nonces; // Maps namehashes to domain nonces

keep track mapping of user id and ethereum address, and domain nonce