Skip to content

Instantly share code, notes, and snippets.

View zramsay's full-sized avatar

Zach zramsay

View GitHub Profile
@zramsay
zramsay / laconic-cns.md
Last active November 10, 2023 17:17
publish laconic records
View laconic-cns.md
  1. Install the laconic command-line tool:
npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/
yarn global add @cerc-io/laconic-registry-cli
  1. Verify installation:
View lotion.trace
root@ubuntu-s-2vcpu-4gb-tor1-01:~/go/src/github.com/wtf# npm install lotion
> utp-native@1.7.3 install /root/go/src/github.com/wtf/node_modules/utp-native
> node-gyp-build
make: Entering directory '/root/go/src/github.com/wtf/node_modules/utp-native/build'
CXX(target) Release/obj.target/libutp/deps/libutp/utp_internal.o
../deps/libutp/utp_internal.cpp: In function ‘size_t utp_process_incoming(UTPSocket*, const byte*, size_t, bool)’:
../deps/libutp/utp_internal.cpp:1970:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (conn->mtu_probe_seq && seq == conn->mtu_probe_seq) {
View bosmarmot.sh
#!/usr/bin/env bash
# XXX: this script is meant to be used only on a fresh Ubuntu 16.04 instance
# and has only been tested on Digital Ocean
sudo apt-get update --yes
sudo apt-get upgrade --yes
# get and unpack golang
curl -O https://storage.googleapis.com/golang/go1.10.linux-amd64.tar.gz
@zramsay
zramsay / sdk.sh
Last active December 13, 2021 13:54
View sdk.sh
#!/usr/bin/env bash
# XXX: this script is intended to be run from a fresh Digital Ocean droplet
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install -y make
# get and unpack golang
curl -O https://storage.googleapis.com/golang/go1.10.linux-amd64.tar.gz
View init_testnet.sh
#!/usr/bin/env bash
# make all the files
tendermint init --home ./tester/node0
tendermint init --home ./tester/node1
tendermint init --home ./tester/node2
tendermint init --home ./tester/node3
file0=./tester/node0/config/genesis.json
file1=./tester/node1/config/genesis.json
View setup_testnet_deps.sh
#!/usr/bin/env bash
# XXX: this script is meant to be used only on a fresh Ubuntu 16.04 instance
# and has only been tested on Digital Ocean
# NOTE: you must set this manually now
echo "export DO_API_TOKEN=\"yourToken\"" >> ~/.profile
sudo apt-get update -y
sudo apt-get upgrade -y
View gist:3a854c56a8da448512a0bef6d2367398
{
"app_hash": "",
"app_state": {
"accounts": [
{
"address": "1FEADCDC8CCB22244769B9CC93C1F6D7489FC5AF",
"coins": [
{
"denom": "mycoin",
"amount": 9007199254740992
View install_ethermint.sh
#!/usr/bin/env bash
# XXX: this script is meant to be used only on a fresh Ubuntu 16.04 instance
# and has only been tested on Digital Ocean
sudo apt-get update
sudo apt-get upgrade -y
# get and unpack golang
View install_tendermint.sh
#!/usr/bin/env bash
# XXX: this script is meant to be used only on a fresh Ubuntu 16.04 instance
# and has only been tested on Digital Ocean
# get and unpack golang
curl -O https://storage.googleapis.com/golang/go1.10.linux-amd64.tar.gz
tar -xvf go1.10.linux-amd64.tar.gz
apt install make
View new_app.js
'use strict';
var contracts = require('eris-contracts');
var fs = require('fs');
var http = require('http');
var address = require('./epm.json').deployStorageK;
var abi = JSON.parse(fs.readFileSync('./abi/' + address, 'utf8'));
var accounts = require('./accounts.json');
var chainUrl;
var manager;