Skip to content

Instantly share code, notes, and snippets.

View kianenigma's full-sized avatar
🦀

Kian Paimani kianenigma

🦀
View GitHub Profile
@kianenigma
kianenigma / kusama-dump
Created August 5, 2020 10:41
Kusama state size dump 5/8/2020
20 M ├─┬ kusama
16 M │ │─┬ Staking
6 M │ │ │─ ErasStakersClipped => Map(7,074,085 bytes, 34498 keys)
6 M │ │ │─ ErasStakers => Map(7,074,085 bytes, 34498 keys)
1 M │ │ │─ ErasRewardPoints => Map(1,223,388 bytes, 84 keys)
946 K │ │ │─ Ledger => Map(969,138 bytes, 3345 keys)
675 K │ │ │─ Nominators => Map(691,744 bytes, 1904 keys)
129 K │ │ │─ ErasValidatorPrefs => Map(132,652 bytes, 34498 keys)
104 K │ │ │─ Bonded => Map(107,040 bytes, 3345 keys)
50 K │ │ │─ SpanSlash => Map(51,744 bytes, 1617 keys)
#1 ["Polkadot.pro - Realgar"] - 127a30e486492921e58f2564b36ab1ca21ff630672f0e76920edd601f8f2b89a (CzYgH6Yr...)
#2 ["NO_IDENT"] - 17b7295b2d66adadef5746c793b746bd2443e1da913636625ba95c7ff853bf22 (D7R2fREf...)
#3 ["NO_IDENT"] - 2c2a55b5c69b5e131fb0f65ac7ca707f4bc53e4d991a2d1971ab5e702f69f45c (DaECbfXq...)
#4 ["NO_IDENT"] - aee72821ca00e62304e4f0d858122a65b87c8df4f0eae224ae064b951d39f610 (GXeWyYpL...)
#5 ["WEB3ITALYDOT"] - eee9d5d071a418b51c02b456d5f5cefd6231041ad59b0e8379c59c11ba4a2439 (HyaNsYuW...)
#6 ["NO_IDENT"] - 98b995d8a902881fcb8891ebe35d50318453a0fd745232ff11e8cbcd5b11b700 (G2ZvhQZw...)
#7 ["NO_IDENT"] - c08d5de7a5d97bea2c7ddf516d0635bddc43f326ae2f80e2595b49d4a08c4619 (GvnhvTuQ...)
#8 ["NO_IDENT"] - 3af8b075de8a04f234f06c62ab44ef258be19bce462385f9d03c1244dab2734e (DueAtLnk...)
#9 ["Staker Space"] - f0de782e8bad3c663be60812f0a2ac63464f5da3ec448c73334c07d71ef27f2c (J296bjVR...)
#10 ["NO_IDENT"] - 38c95b31fe81ba229b2e2216f0bf6812ca45dc3ad5c49e15b48e0eef5555bf40 (Drn1oSve...)
@kianenigma
kianenigma / gist:6f6cb94f0624fb10911348640da34267
Last active June 17, 2020 14:31
Dump of dangling nominators on Kusama, June 17th 2020
[2020-06-17T14:13:16Z INFO offline_phragmen] total_issuance = 9362701,351KSM (9,362,701,351,556,641,850)
[2020-06-17T14:13:16Z INFO offline_phragmen] connected to [wss://kusama-rpc.polkadot.io]
[2020-06-17T14:13:16Z INFO offline_phragmen] at [0x74dd…8ca0]
[2020-06-17T14:13:18Z DEBUG offline_phragmen::subcommands::dangling_nominators] [0/1235] Nominator 102cda735370293bce834ff3c7a6a6ae73767725906434403836f8e61ee5db56 (5CRuwumC...) Ok. Retaining all 16 votes.
[2020-06-17T14:13:19Z DEBUG offline_phragmen::subcommands::dangling_nominators] [1/1235] Nominator e57b16b0210195cdea03ba37940ddc215e74f5f53a3efbb8b36ea39021aa56a9 (5HFbPSXt...) Ok. Retaining all 16 votes.
[2020-06-17T14:13:20Z DEBUG offline_phragmen::subcommands::dangling_nominators] [2/1235] Nominator 3c4c4c6d63e1428b8450773a851ad4d3eb76c2f5a4fa1722b5d84cf54cf6ba56 (5DRmPuCf...) Ok. Retaining all 16 votes.
[2020-06-17T14:13:21Z DEBUG offline_phragmen::subcommands::dangling_nominators] [3/1235] Nominator a6ff2197e260745daf5ae4c9f73ec52ddb19dd9d9f4a3178
[🤑][Era 863, block 2570013] Submit election solution with score [12488167277027543, 5535955046686416541, 117889898560723930956941881572521535] // Event = "ExtrinsicSuccess"
[🤑][Era 862, block 2566456] Submit election solution with score [12488167277027543, 5532215379933046597, 117826654925713863823779834925522355] // Event = "ExtrinsicSuccess"
[✅ // [0.00000% ,0.00000% ,0.09834% ,]][Era 862, block 2566461] Submit election solution with score [12488167277027543, 5532215379933046597, 117710893888984556173809419900174065] // Event = "ExtrinsicSuccess"
[🤑][Era 861, block 2562902] Submit election solution with score [12488167277027543, 5559266368032409496, 118749283262079244270992278287436446] // Event = "ExtrinsicSuccess"
[✅ // [0.00000% ,0.00000% ,0.04090% ,]][Era 861, block 2562924] Submit election solution with score [12488167277027543, 5559266368032409496, 118700736389524721358337889258988054] // Event = "ExtrinsicSuccess"
[🤑][Era 860, block 2559355] Submit election solution with score [12488167277027543, 555
[🤑][Era 832, block 2459331] Submit election solution with score [16500990000000000, 5451745585255556702, 121988327374654936401385614129377354] // Event = Event::system(RawEvent::ExtrinsicSuccess(DispatchInfo { weight: 100000000000, class: DispatchClass::Normal, pays_fee: Pays::Yes }))
[✅][Era 832, block 2459336] Submit election solution with score [16500990000000000, 5451745585255556702, 121928348238755152494872377607573740] // Event = Event::system(RawEvent::ExtrinsicSuccess(DispatchInfo { weight: 100000000000, class: DispatchClass::Normal, pays_fee: Pays::Yes }))
[🤑][Era 831, block 2455752] Submit election solution with score [16500990000000000, 5457922662903153046, 122516317281139247930906780823341868] // Event = Event::system(RawEvent::ExtrinsicSuccess(DispatchInfo { weight: 100000000000, class: DispatchClass::Normal, pays_fee: Pays::Yes }))
[🤑][Era 830, block 2452163] Submit election solution with score [15916084254215304, 5439474364711962868, 121522850471876681634293188216488588] // Event = Event::syste
@kianenigma
kianenigma / Razer Blade Stealth 13 2019 - Linux Mint Installation
Created March 10, 2019 20:51
Notes on multiple attempts to install Linux Mint 19 on Razer Blade Stealth 2019
Dual booted with windown boot laoder via:
- 100GB / root exe4 journal file system
- 16GB Swap (might be too much --only used over heavy load)
Initial system had the following (annoying issues) + Fixes
- No drivers work properly: Mouse is laggy + wifi is super slow
- Update the kernel immediately
{
"nodes": [
{
"path": "./front.js",
"port": 4000,
"stdio": "file",
"env": "TRACE_API_KEY {YOUR_API_KEY} TRACE_SERVICE_NAME front"
},
{
const trace = require('@risingstack/trace')
front.ms@127.0.0.1:4000 successfully lunched. writing output to file [--xyz-transport.0.port 4000 --xyz-cli.enable true --xyz-cli.stdio file ]
creating logfile ./log/front.ms@127.0.0.1:4000.log
process client.ms@127.0.0.1:5000 successfully lunched. writing output to file [--xyz-transport.0.port 5000 --xyz-cli.enable true --xyz-cli.stdio file ]
creating logfile ./log/client.ms@127.0.0.1:5000.log
process worker.ms@127.0.0.1:6000 successfully lunched. writing output to file [--xyz-transport.0.port 6000 --xyz-cli.enable true --xyz-cli.stdio file ]
creating logfile ./log/worker.ms@127.0.0.1:6000.log
┌───────┬──────────────────────────┬──────────────────────────────────────────────────────────────────────────────────┐
│ Index │ Identifier │ command line arguments │
├───────┼──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────┤
│ 0 │ front.ms@127.0.0.1:4000 │ --xyz-transport.0.port 40
xyz dev -c xyz.json