Skip to content

Instantly share code, notes, and snippets.

Avatar

Danil Ushakov k0kk0k

View GitHub Profile
@k0kk0k
k0kk0k / README.md
Last active Dec 7, 2021
A simple utility for monitoring any Cosmos-SDK based node
View README.md

Description

This bash script designed for monitoring the state of a node and automatically unjail validator and/or restarting node in the case of an unexpected node halt or lost of sync state.

Installation

  1. For keyring password create the file <pass.key> and write the password to it.
read -s -p "Enter password: " pass
echo $pass > pass.key
View gist:1aa317ec5d432564a4bc4c1acb0bd1f3
orai_node | I[2021-01-18|09:31:13.231] Executed block module=state height=310702 validTxs=0 invalidTxs=0
orai_node | I[2021-01-18|09:31:13.249] Committed state module=state height=310702 txs=0 appHash=40D81738F31F38805D9AE17228C9D5DC4ECD7E45FA71CE0552A3D46C6FEF2D26
orai_node | I[2021-01-18|09:31:20.096] Executed block module=state height=310703 validTxs=0 invalidTxs=0
orai_node | I[2021-01-18|09:31:20.116] Committed state module=state height=310703 txs=0 appHash=365172EDFE170B4FA625C16170608F804FF7D9DE7E139623872E27036E772B10
orai_node | block for reward: 310704
orai_node | I[2021-01-18|09:31:27.012] Executed block module=state height=310704 validTxs=1 invalidTxs=0
orai_node | I[2021-01-18|09:31:27.031] Committed state module=state height=310704 txs=1 appHash=66A99445141A16C96BBA71E6D9044E3BF02A3B7D56421A4871C149FE065735E0
orai_node |
View baklava-metadata.json
{
"claims": [
{
"url": "https://ushakov-a0.icbrg.club",
"timestamp": 1606139462,
"type": "ATTESTATION_SERVICE_URL"
}
],
"meta": {
"address": "0x3d560A4cf66C82e54b360c558D8CF0359F73675E",
View Install-SGX-SDK-and-Driver.sh
#! /bin/bash
UBUNTUVERSION=$(lsb_release -r -s | cut -d '.' -f 1)
if (($UBUNTUVERSION < 16)); then
echo "Your version of Ubuntu is not supported. Must have Ubuntu 16.04 and up. Aborting installation script..."
exit 1
elif (($UBUNTUVERSION < 18)); then
DISTRO='xenial'
else
@k0kk0k
k0kk0k / contract-mod.sol
Last active Sep 14, 2020
simply contract (modified)
View contract-mod.sol
pragma solidity >=0.5.12;
contract UshakovToken {
mapping(address => uint256) balances;
uint256 public totalSupply = 0;
@k0kk0k
k0kk0k / contract.sol
Last active Sep 14, 2020
very simple token
View contract.sol
pragma solidity >=0.5.12;
contract UshakovToken {
mapping(address => uint256) balances;
uint256 public totalSupply = 0;
View keybase.md

Keybase proof

I hereby claim:

  • I am k0kk0k on github.
  • I am ushakov (https://keybase.io/ushakov) on keybase.
  • I have a public key ASDX9YYJx2ZliJkI0U5xjL5gDrjo5FZSYAIJUuBlTTD78Qo

To claim this, I am signing this object:

View steal.sh
#!/bin/bash
addresses=($(cat ~/accounts.txt | jq -r .address))
#for ((a=5; a < ${#addresses[@]}; a++)); do
for ((a=65; a <=500; a++)); do
echo "ADDRESS: $a"
echo "${addresses[((${a}-1))]}"
echo -e "Creating task..."
@k0kk0k
k0kk0k / restaking.sh
Last active May 15, 2020
Akash auto restaking
View restaking.sh
#!/bin/bash
GREEN='\033[0;32m'
RED='\033[0;31m'
NC='\033[0m' # No Color
DELEGATOR='akash1pjf4kxeeq2vc8vtg9zmm7e6haac8at70f7630g'
VALIDATOR='akashvaloper1pjf4kxeeq2vc8vtg9zmm7e6haac8at70ru5hlz'
PASWD='your_wallet_pass'
DELAY=600 #in secs
ACC_NAME=devurandom