Skip to content

Instantly share code, notes, and snippets.

💻
.zZ

Richard Liu lzl124631x

💻
.zZ
Block or report user

Report or block lzl124631x

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View log using p2pv2
~/GoPath/src/github.com/harmony-one/harmony ~/GoPath/src/github.com/harmony-one/harmony/test
compiling ...
~/GoPath/src/github.com/harmony-one/harmony/test
launching beacon chain ...
DEBUG[01-03|12:09:16.383843] Host is up! port=9000 id=QmVsfjvsWXrWbPAW6rnw1ETEwPbzBhrc8UxccYBmTzV3M2 addrs=/ip4/127.0.0.1/tcp/9000
INFO [01-03|12:09:16.383924] connecting to beacon chain now ...
DEBUG[01-03|12:09:16.894145] Host is up! port=9001 id=QmS5McgwcAnzjrT5jFGfS7DMDiJErsFH2VBq3ALkGN67Ex addrs=/ip4/127.0.0.1/tcp/9001
INFO [01-03|12:09:16.894221] connecting to beacon chain now ...
DEBUG[01-03|12:09:17.404199] Host is up! port=9002 id=QmPKyHmR1sTK83azretZYjcLXDYmtaBJbLjuSsX4HMSRgd addrs=/ip4/127.0.0.1/tcp/9002
INFO [01-03|12:09:17.404282] connecting to beacon chain now ...
View config1
compiling ...
launching beacon chain ...
INFO [12-08|23:40:02.301771] connecting to beacon chain now ...
INFO [12-08|23:40:03.314806] connecting to beacon chain now ...
INFO [12-08|23:40:04.328916] connecting to beacon chain now ...
INFO [12-08|23:40:05.339338] connecting to beacon chain now ...
INFO [12-08|23:40:06.353002] connecting to beacon chain now ...
INFO [12-08|23:40:07.307683] Shard information obtained ..
INFO [12-08|23:40:07.366782] connecting to beacon chain now ...
INFO [12-08|23:40:08.316918] Shard information obtained ..
View -p + v1
compiling ...
launching beacon chain ...
INFO [12-07|01:35:55.342781] connecting to beacon chain now ...
INFO [12-07|01:35:56.355456] connecting to beacon chain now ...
INFO [12-07|01:35:57.368468] connecting to beacon chain now ...
INFO [12-07|01:35:58.37678] connecting to beacon chain now ...
INFO [12-07|01:35:59.388905] connecting to beacon chain now ...
INFO [12-07|01:36:00.348191] Shard information obtained ..
ERROR[12-07|01:36:00.348302] Error listening on port. port=9000 err="accept tcp4 127.0.0.1:9000: use of closed network connection"
INFO [12-07|01:36:00.404471] connecting to beacon chain now ...
View config1, p2pv1
DEBUG[12-04|20:58:52.252161] Starting server node="[duty:VLD, priKey:bff3000000000000000000000000000000000000000000000000000000000000, ShardID:0, nodeID:62399, state:Finished]" ip=127.0.0.1 port=9007
INFO [12-04|20:58:52.252882] support_sycning: StartSyncingServer on port: port=8007
DEBUG[12-04|20:58:52.329352] Starting server node="[duty:VLD, priKey:bdf3000000000000000000000000000000000000000000000000000000000000, ShardID:0, nodeID:62397, state:Finished]" ip=127.0.0.1 port=9005
INFO [12-04|20:58:52.33018] support_sycning: StartSyncingServer on port: port=8005
DEBUG[12-04|20:58:52.436496] Starting server node="[duty:VLD, priKey:bbf3000000000000000000000000000000000000000000000000000000000000, ShardID:0, nodeID:62395, state:Finished]" ip=127.0.0.1 port=9003
INFO [12-04|20:58:52.437773] support_sycning: StartSyncingServer on port: port=8003
DEBUG[12-04|20:58:52.460597] Starting server node="[duty:VLD, priKey:c1f3
View config2, -p, p2pv1
DEBUG[12-04|21:01:30.845892] listening on address=127.0.0.1:9000
INFO [12-04|21:01:30.846191] connecting to beacon chain now ...
DEBUG[12-04|21:01:31.855701] listening on address=127.0.0.1:9001
INFO [12-04|21:01:31.856431] connecting to beacon chain now ...
DEBUG[12-04|21:01:32.876176] listening on address=127.0.0.1:9002
INFO [12-04|21:01:32.877421] connecting to beacon chain now ...
DEBUG[12-04|21:01:33.879081] listening on address=127.0.0.1:9003
INFO [12-04|21:01:33.880351] connecting to beacon chain now ...
DEBUG[12-04|21:01:34.894313] listening on address=127.0.0.1:9004
INFO [12-04|21:01:34.895692] connecting to beacon chain now ...
View log
DEBUG[12-04|01:22:26.414085] Stop encoding block
INFO [12-04|01:22:26.414557] New Announce NodeID=62392 bitmap="&{mask:[0 4] publics:[0xc000e42160 0xc000e42210 0xc000e422c0 0xc000e42370 0xc000e42420 0xc000e424d0 0xc000e42580 0xc000e42630 0xc000e426e0 0xc000e42790 0xc000e42000] AggregatePublic:2c4fb42a5f6c74e957355717561bbc50c5d78e07a8212c8bb434dc63a79fdd4a}"
INFO [12-04|01:22:26.437725] Start Broadcasting gomaxprocs=1024 Size=101660
INFO [12-04|01:22:26.437784] Broadcasting Done time spent(s)=0.000
INFO [12-04|01:22:26.437811] Done sending from leader
INFO [12-04|01:22:26.438736] NET: received message: Consensus/Validator
INFO [12-04|01:22:26.438833] NET: received message: Consensus/Validator
INFO [12-04|01:22:26.438838] NET: received message: Consensus/Validator
INFO [12-04|01:22:26.438918] NET: received message: Consensus/Validator
INFO [12-04|01:22:26.438914] NET: received message: Consensus/Validator
@lzl124631x
lzl124631x / delete-branches.js
Last active Nov 29, 2018
Delete Useless Github Remote Branches
View delete-branches.js
// 1. Go to Github Branches Page
// 2. Open Chrome Dev Tool Console (F12)
// 3. Paste this command into the console and run.
// 4. Paste your clipboard in bash command line and run.
copy('git push origin --delete ' + $$('a.branch-name').map(x => x.textContent).join(' '))
View add_markdown_to_mongodb.js
use admin
files = ls();
files.forEach((file) => {
regex=/\.\/(.*)\.md/g
parts=regex.exec(file)
if (parts == null) return
title=parts[1]
print(title)
content=cat(file)
print(content)
@lzl124631x
lzl124631x / droplet.css
Created Aug 14, 2016
CSS 3 Water Droplet
View droplet.css
.droplet {
width: 1em;
height: 1em;
border-radius: 80% 0 55% 50% / 55% 0 80% 50%;
background-color: #07C;
transform: rotate(-45deg);
}
@lzl124631x
lzl124631x / js
Created Aug 14, 2016
get percentage css value from element
View js
$.fn.pureCss = function (css) {
var $dummy = this.parent().clone().appendTo('body').hide();
var ret = $dummy.find(this.selector).css(css);
$dummy.remove();
return ret;
};
You can’t perform that action at this time.