Skip to content

Instantly share code, notes, and snippets.

View blockpane's full-sized avatar
🚀

Todd G blockpane

🚀
View GitHub Profile
@blockpane
blockpane / main.go
Last active August 24, 2021 03:36
Tendermint subscribe example
package main
import (
"context"
"encoding/json"
"fmt"
rpchttp "github.com/tendermint/tendermint/rpc/client/http"
"github.com/tendermint/tendermint/types"
"time"
)
@blockpane
blockpane / kava.md
Last active August 17, 2021 07:41
Kava install log

Kava install notes on Ubuntu:

Install golang

sudo apt install snapd build-essential
sudo snap install go --classic

setup a user to run under, and build daemons:

@blockpane
blockpane / nofile.md
Last active August 24, 2021 17:55
Bump up nofile limits for osmosisd

Check current limits:

cat /proc/$(pidof osmosisd)/limits

Update systemd

Edit /etc/systemd/system/osmosisd.service (or whatever you named it.) And in the [Service] section, set the following:

@blockpane
blockpane / cloud-init.yml
Created June 22, 2021 21:25
AWS CloudWatch Logs - Install via Cloud Init
#cloud-config
# vim: syntax=yaml
#
write_files:
# cloudwatch logs, send log streams, but not metrics:
- content: |
{
"agent": {
@blockpane
blockpane / snap.sh
Last active December 4, 2021 20:43
FIO Snapshots Script
#!/bin/bash
#CONTAINER=fixme
#ZPOOL=fixme
#CHAIN_NAME=fixme
#OUT_DIR=fixme
#URL=fixme
#API=fixme
# Uses ZFS snapshots to minimize node downtime when creating history node archives:
@blockpane
blockpane / address.go
Last active February 25, 2021 06:27
Get Ethereum address from transaction
package main
import (
"context"
"fmt"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/ethclient"
)
@blockpane
blockpane / linkauth.md
Last active February 2, 2021 22:52
linkauth

Linkauth cheatsheet

given two keys:

account granting permissions:

Account Name:   produceracct
@blockpane
blockpane / devnet.md
Last active December 14, 2020 05:21
FIO Devnet

FIO devnet

  1. I recommend creating a seperate user account for this, only used for running a dev net.
  2. Must be on Ubuntu 18.04
  3. User will require sudo access for part of the install.

Get code

In the user's home directory clone the following four repositories, suggest using the Develop branch for each:

@blockpane
blockpane / install.md
Last active January 1, 2022 19:04
FIO Node install

Node install steps:

Download and verify

Install utilities for getting the snapshot, and verifying the signature:

sudo apt-get install -y pixz aria2 gpg
@blockpane
blockpane / build.sh
Last active February 8, 2024 22:52
Build, package, sign, image, sign again, notarize, and staple a fyne.io app for MacOS
#!/bin/bash
# builds a fyne macos app, signs it, creates a .dmg, signs that, and then requests notarization.
# ... stapling the notarization should wait until the request is approved which can take a minute ...
#
# Pre-reqs:
# Install the full xcode package
# Install the fyne command line tool
# Create a certificate request, send to apple developer site, and import the resulting certificate
# Create an application password in appleid.apple.com tied to the app's name in the keychain