This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am c29r3 on github. | |
* I am not2day (https://keybase.io/not2day) on keybase. | |
* I have a public key ASAdNqGqyNkUwVBr35C8Y-FzYmO_Wmx1oRNu_ryV8Si4XQo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SELF_ADDR="akash..." | |
OPERATOR="akashvaloper..." | |
WALLET_NAME="teamname" | |
WALLET_PWD="pwd" | |
BIN_FILE="/root/go/bin/akashctl" | |
# withdraw reward | |
echo -e "$WALLET_PWD\n$WALLET_PWD\n" | $BIN_FILE tx distribution withdraw-rewards $OPERATOR --commission --chain-id centauri --from $WALLET_NAME -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export PATH="/root/.local/share/solana/install/active_release/bin:$PATH" | |
TEXTFILE_COLLECTOR_DIR=/var/lib/node_exporter/textfile_collector | |
FILENAME=solana_block_production.prom | |
metrics_prefix=solana_monit_tds | |
ALL=$(timeout 45 solana block-production 2>&1 | grep -v "Identity Pubkey" | grep -v "using data from" | grep -v ":" | grep . | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' | sed -e 's/\s\+/,/g' | sed 's/%//g' ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GO_VERSION=$1 | |
if [ "$GO_VERSION" == "" ]; then | |
GO_VERSION="1.15.6" | |
fi | |
echo $GO_VERSION | |
cd /tmp/ \ | |
&& wget -q https://dl.google.com/go/go$GO_VERSION.linux-amd64.tar.gz \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import time | |
import os | |
from concurrent.futures import ThreadPoolExecutor | |
import requests | |
from requests import RequestException, HTTPError, ConnectionError, Timeout | |
timeout_req = 10 | |
threads_count = 10000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir /var/lib/node_exporter/textfile_collector | |
cd /tmp | |
curl -LO https://github.com/prometheus/node_exporter/releases/download/v1.1.2/node_exporter-1.1.2.linux-amd64.tar.gz | |
tar -xvf node_exporter*.gz | |
rm node_exporter*.gz /usr/local/bin/node_exporter | |
mv node_exporter*/node_exporter /usr/local/bin/ | |
useradd -rs /bin/false node_exporter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DESMOSCLI="/root/go/bin/desmoscli" | |
ADDRESS=$($DESMOSCLI keys list -o json | jq -r '.[] | select(.name=="desmos") | .address') | |
while true; | |
do | |
curl 'https://faucet.desmos.network/airdrop' \ | |
-H 'authority: faucet.desmos.network' \ | |
-H 'accept: */*' \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir sifchain; cd sifchain; git clone https://github.com/Sifchain/sifnode.git; cd sifnode; git checkout tags/monkey-bars-testnet-3; /usr/bin/make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PROJECT_NAME="sifchain" | |
BIN_PATH="$HOME/go/bin" | |
NODED="sifnoded" | |
echo "------> Creating systemd unit $PROJECT_NAME.service" | |
tee /etc/systemd/system/$PROJECT_NAME.service > /dev/null <<EOF | |
[Unit] | |
Description=$PROJECT_NAME Full Node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
iptables -A OUTPUT -d 0.0.0.0/8 -j DROP | |
iptables -A OUTPUT -d 10.0.0.0/8 -j DROP | |
iptables -A OUTPUT -d 100.64.0.0/10 -j DROP | |
iptables -A OUTPUT -d 169.254.0.0/16 -j DROP | |
# iptables -A OUTPUT -d 172.16.0.0/12 -j DROP | |
iptables -A OUTPUT -d 192.0.0.0/24 -j DROP | |
iptables -A OUTPUT -d 192.0.2.0/24 -j DROP | |
iptables -A OUTPUT -d 192.88.99.0/24 -j DROP |
OlderNewer