Install golang
sudo apt install snapd build-essential
sudo snap install go --classic
setup a user to run under, and build daemons:
package main | |
import ( | |
"context" | |
"encoding/json" | |
"fmt" | |
rpchttp "github.com/tendermint/tendermint/rpc/client/http" | |
"github.com/tendermint/tendermint/types" | |
"time" | |
) |
#cloud-config | |
# vim: syntax=yaml | |
# | |
write_files: | |
# cloudwatch logs, send log streams, but not metrics: | |
- content: | | |
{ | |
"agent": { |
#!/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: |
package main | |
import ( | |
"context" | |
"fmt" | |
"github.com/ethereum/go-ethereum/common" | |
"github.com/ethereum/go-ethereum/core/types" | |
"github.com/ethereum/go-ethereum/ethclient" | |
) |
#!/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 |