Skip to content

Instantly share code, notes, and snippets.

💭
something something Petri-Net

Matt York stackdump

💭
something something Petri-Net
Block or report user

Report or block stackdump

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 0001-added-test-to-sync-accross-net.patch
From e387b124a960f9d840d249a679be7a2a16bff261 Mon Sep 17 00:00:00 2001
From: stackdump <myork@stackdump.com>
Date: Mon, 5 Aug 2019 13:17:13 -0500
Subject: [PATCH] added test to sync accross net
---
peerTest/NetSyncA_test.go | 35 +++++++++++++++++++++++++++++++++++
peerTest/NetSyncB_test.go | 37 +++++++++++++++++++++++++++++++++++++
2 files changed, 72 insertions(+)
create mode 100644 peerTest/NetSyncA_test.go
View ryp4_bench
Writing ByteMap Table
Done. Total time taken: 30m2.033813308s
Hash Init = fafaececfafaecec, 30, 256, 5
CPU = ARMv7 Processor rev 3 (v7l)
Cores = 4
Total RAM = 3906 MB
OS = linux
Platform = raspbian
=====================================
Running 60 second test with 1 miners: 59s
View factomd.iml
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="Go">
<buildTags>
<option name="customFlags">
<array>
<option value="longtest" />
<option value="simtest" />
<option value="all" />
</array>
View test-sig
tree 10c18534357cbe9ec3ffc3814af5e141189cc102
parent 2ea8e2411c25000185acdebc62eaa8b657ef093e
author stackdump <myork@stackdump.com> 1559241822 -0500
committer stackdump <myork@stackdump.com> 1559241822 -0500
gpgsig -----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEE7Jdzt+QOUM4vSxEFHicSreJ7DwYFAlzwJGYACgkQHicSreJ7
DwYC0Q/+JV3OHp9/ALUIeZELO/+WRIAtxanupIPDw97KAspclpnHxbfWPEpZK6JL
k2oyAfwbz5nyz1L+vbUnRBnmzTehjaUq+Sh9S3dYjXsBN0GMeiEb7H/Igs9FKTpQ
SmdX9F0yQRocypFrbGN52Ig9bpH6YDfUxxQs9uC/sHlita59emMgenp6Y6o9ujn6
View event.proto
syntax = "proto3";
option java_multiple_files = true;
option java_package = "com.project.factom.finite.event";
option java_outer_classname = "EventProto";
package finite;
import "google/protobuf/timestamp.proto";
import "google/protobuf/any.proto";
View display.json
{
"Authorities": [
{
"anchorkeys": null,
"chainid": "38bab1455b7bd7e5efd15c53c777c79d0c988e9210f1da49a99d95b3a6417be9",
"manageid": "0000000000000000000000000000000000000000000000000000000000000000",
"matroyshka": "0000000000000000000000000000000000000000000000000000000000000000",
"signingkey": "cc1985cdfae4e32b5a454dfda8ce5e1361558482684f3367649c3ad852c8e31a",
"status": "federated"
}
View docker-compose.yml
version: '3'
services:
jaeger:
image: jaegertracing/all-in-one:1.3.0
ports:
- 127.0.0.1:5775:5775/udp # accept zipkin.thrift over compact thrift protocol
- 127.0.0.1:6831:6831/udp # accept jaeger.thrift over compact thrift protocol
- 127.0.0.1:6832:6832/udp # accept jaeger.thrift over binary thrift protocol
- 127.0.0.1:5778:5778 # serve configs
- 127.0.0.1:16686:16686 # serve frontend
View octoe.pflow
<?xml version="1.0" encoding="UTF-8"?><document>
<id/>
<x/>
<y/>
<label/>
<subnet>
<id/>
<x>0</x>
<y>0</y>
<label/>
View README.md

Add to your cron

crontab -e

Add a line like this

# m h  dom mon dow   command
0 * * * * /usr/sbin/logrotate /media/ork/berg/mainnet/logrotate.conf --state /media/ork/berg/mainnet/logrotate-state
View memprofile-loop.go
func MemProfiler() {
// record memory profile on a loop
ticker := time.NewTicker(time.Second)
for {
<-ticker.C
st := &runtime.MemStats{}
runtime.ReadMemStats(st)
// From Golang docs: HeapObjects increases as objects are allocated
// and decreases as the heap is swept and unreachable objects are
You can’t perform that action at this time.