Skip to content

Instantly share code, notes, and snippets.

[Unit]
Description=Heimdallr
After=network.target
StartLimitIntervalSec=60
StartLimitBurst=3
[Service]
Type=simple
Restart=on-failure
RestartSec=5
[Unit]
Description=Heimdall
After=network.target
[Service]
Restart=on-failure
RestartSec=3
User=polygon
LimitNOFILE=65535
ExecStart=/home/polygon/heimdall/build/heimdalld --home /home/polygon/.local/share/heimdall/ start
[Unit]
Description=Erigon Polygon Service
After=network.target
StartLimitIntervalSec=60
StartLimitBurst=3
[Service]
Type=simple
Restart=on-failure
RestartSec=5
@novy4
novy4 / gist:dedc84722523d1c94c2096f4f09f8e7b
Created July 14, 2023 08:28
terraform-helm-release-debug-log
This file has been truncated, but you can view the full file.
2023-07-14T11:22:04.193+0300 [INFO] provider: configuring client automatic mTLS
2023-07-14T11:22:04.197+0300 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/random/3.5.1/darwin_arm64/terraform-provider-random_v3.5.1_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/random/3.5.1/darwin_arm64/terraform-provider-random_v3.5.1_x5]
2023-07-14T11:22:04.200+0300 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/random/3.5.1/darwin_arm64/terraform-provider-random_v3.5.1_x5 pid=34092
2023-07-14T11:22:04.200+0300 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/random/3.5.1/darwin_arm64/terraform-provider-random_v3.5.1_x5
2023-07-14T11:22:04.252+0300 [INFO] provider.terraform-provider-random_v3.5.1_x5: configuring server automatic mTLS: timestamp=2023-07-14T11:22:04.251+0300
2023-07-14T11:22:04.269+0300 [DEBUG] provider: using plugin: version=5
2023-07-14T11:22:04.269+
@novy4
novy4 / gist:83efb35cfe133cccd52fa8c8c0e5ba2d
Last active March 26, 2021 20:41
Bitsong Redelegate Rewards
#!/bin/bash
SELF_ADDR=""
OPERATOR=""
WALLET_NAME=""
NODE="tcp://localhost:26657"
WALLET_PWD=""
BIN_FILE="/usr/local/bin/bitsongcli"
COIN="ubtsg"
CHAIN_ID="bitsong-1"
@novy4
novy4 / indexer-service-level-50.log.xz
Last active November 23, 2020 13:04
Indexer Service log file
This file has been truncated, but you can view the full file.
@novy4
novy4 / desmos-cosmovisor-installer.sh
Created September 16, 2020 09:58 — forked from ForboleDevelopment/desmos-cosmovisor-installer.sh
This script allows you to setup Cosmovisor inside your Desmos node so that it will be able to automatically upgrade itself for the Desmos September Upgrade
#!/usr/bin/env bash
# This script allows the easy installation of the Cosmovisor daemon to watch
# any upgrade of your Desmos node.
# In order to run it properly, just execute this script giving it the path
# to the folder where you cloned Desmos.
# Example:
# ./install-cosmovisor.sh ~/desmos
DESMOS_PATH=$1
#####GRAPH-NODE######
#####NPM INSTALL#####
sudo apt update && \
curl -sL https://deb.nodesource.com/setup_14.x | sudo bash - && \
sudo apt -y install nodejs && \
sudo apt install -y libsecret-1-dev && \
nodejs -v && \
npm version
####DATABASE-SERVER##################
#!/bin/bash
remote_height=$(curl -s https://api.blockcypher.com/v1/eth/main | jq .height)
local_height=$(($(curl -sX POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' http://127.0.0.1:8545 | jq -r .result)))
re='^[0-9]+$'
if ! [[ $remote_height =~ $re ]] ; then
echo "error: remote_height is not a number" >&2; exit 1
fi
##########GRAPH-NODE########
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -; \
sudo bash -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'; \
sudo apt-get update && sudo apt-get upgrade -y; \
sudo apt-get install -y clang libpq-dev libssl-dev pkg-config; \
sudo apt-get install -y gnupg gnupg2 snapd git postgresql-12 postgresql-client-12 nodejs screen httpie ufw; \
curl https://sh.rustup.rs -sSf | sh
source $HOME/.cargo/env
sudo snap install ipfs