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 |
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
1 синхроним ноду. | |
Сервис не получается сделать - разбираться лень поэтому в tmux | |
Обратите внимание на 8585 порт! забирать будем оттуда! | |
./openethereum --chain rinkeby --base-path=/home/openethereum/rinkeby --db-compaction=ssd --cache-size=50000 --jsonrpc-threads=32 --jsonrpc-server-threads=64 --jsonrpc-hosts=all --no-warp --max-peers=64 --jsonrpc-interface=all --ws-port=8573 --ws-interface=all --ws-hosts=all --allow-ips=public --port 8585 | |
Идём на сайт https://my.freenom.com/ заказываем себе на годик (или меньше) приглянушийся домен ip адресс эфирной ноды вписываем туда. (бесплатно) указываем почту получаем письмо подтвержедение | |
создаём ssl | |
https://certbot.eff.org/lets-encrypt/ubuntufocal-nginx | |
либо | |
sudo snap install core; sudo snap refresh core |
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
pragma solidity >=0.5.12; | |
contract SKALPToken { | |
mapping(address => uint256) balances; | |
uint256 public totalSupply = 0; | |
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
pragma solidity >=0.5.12; | |
contract SKALPToken { | |
mapping(address => uint256) balances; | |
uint256 public totalSupply = 0; | |
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
########ETH-NODE######## | |
apt-get update | |
apt-get upgrade | |
apt-get install nginx | |
rm /etc/nginx/sites-enabled/* | |
nano /etc/nginx/sites-enabled/ether.conf | |
#Туда вот это ничего не меняя. | |
/начало файла |
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 | |
set -e | |
vote_account="/root/solana/vote-account-keypair.json" | |
identity_account="/root/solana/validator-keypair.json " | |
new_stake="/root/solana/validator-stake-keypair-$(printf '%(%Y-%m-%d)T').json" | |
min_vote_balance=100 | |
available_for_withdraw=$(solana balance $vote_account | awk -F\. '{print $1}') | |
re='^[0-9]+$' | |
if ! [[ $available_for_withdraw =~ $re ]] ; then |
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
#### | |
# пути к ключам будут вида /solana/validator-keypair.json | |
# а на хосте они будут лежать в папке /root/solana_blabla. например /root/solana_agx10k | |
#### | |
#######################################dockerfile#### | |
echo "export SOLANA_NAME=<имя>" | tee -a ~/.bashrc ### например AG | |
source ~/.bashrc | |
echo "export SOLANA_DIR=/root/solana_${SOLANA_NAME}" | tee -a ~/.bashrc |
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 gribnik2k on github. | |
* I am vladimirskalp (https://keybase.io/vladimirskalp) on keybase. | |
* I have a public key ASCOLtwEcN0TDEOa5djntwAYsAyTJxnhMaDqNeIomcc5CQo | |
To claim this, I am signing this object: |