Skip to content

Instantly share code, notes, and snippets.

0 0-23 * * * root systemctl restart orange.service
[Unit]
Description= Update Node information
#After=mongod.service
#StartLimitBurst=5
#StartLimitIntervalSec=10
[Service]
Type=simple
Restart=always
RestartSec=1
#!/bin/bash
######################################################################
# Copyright (c) 2020
# All rights reserved.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
#
# Desc: Batch script to download and setup Energi3 on Linux. The
# script will upgrade an existing installation. If v2 is
# installed on the VPS, the script can be used to auto migrate
@da-tai
da-tai / launch_docker.sh
Last active August 31, 2021 11:42
launch_docker.sh
#!/bin/bash
prog=$(basename $0)
mykeyfile=mykey.txt
myaddrfile=myaddr.txt
image=zilliqa/zilliqa:v8.1.0
os=$(uname)
testnet_name='mainnet-oceandrive1'
exclusion_txbodies_mb="true"
bucket_name='c5b68604-8540-4887-ad29-2ab9e680f997'
@da-tai
da-tai / nodemon.sh
Last active December 5, 2020 15:33
#!/bin/bash
#######################################################################
# Copyright (c) 2020
# All rights reserved.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
#
# Desc: NRG Monitor Toolset: Set of tools to monitor and manage NRG
# Core Node, the reward received and notify the user via email
# SMS and Social Media channels. Currently, Discord and Telegram
@da-tai
da-tai / z.sh
Last active November 27, 2019 18:36
[Unit]
Description= Z Restart
[Service]
Type=simple
Restart=always
RestartSec=1
ExecStart=/home/user/zil/zil-monitor.sh
[Install]
#!/usr/bin/env bash
# Check for multiple screens, if more than one found - kill all
# if [[ $(screen -list | grep '.zil' | wc -l) -gt 1 ]]; then
# for i in $(screen -list | grep '.zil' | awk '{print $1}'); do
# screen -X -S $i kill
# done
# fi
while true; do
screens=`screen -ls zil | grep -E "[0-9]+\.zil" | cut -d. -f1 | awk '{print $1}'`