This tutorial shows how to make backups to Google Cloud Storage. The backups are:
- automatic
- stored off site
- incremental
#!/bin/sh | |
case $1 in | |
start) | |
iptables -N eosio-api | |
iptables -N eosio-apisyn | |
iptables -N eosio-p2p | |
iptables -A eosio-api -m hashlimit --hashlimit-above 200/sec --hashlimit-mode srcip --hashlimit-burst 20 --hashlimit-name api_hash -j DROP | |
iptables -A eosio-apisyn -m hashlimit --hashlimit-above 10/sec --hashlimit-mode srcip --hashlimit-burst 20 --hashlimit-name apisyn_hash -j DROP | |
iptables -A eosio-p2p -m hashlimit --hashlimit-above 10/min --hashlimit-mode srcip --hashlimit-burst 5 --hashlimit-name p2p_hash -j DROP | |
iptables -A INPUT -p tcp -m tcp --dport 9000:9999 --tcp-flags FIN,SYN,RST,ACK SYN -j eosio-p2p |
#!/bin/bash | |
trap "echo 'Terminating all processes...'; pkill -P $$; exit 1" SIGINT SIGTERM | |
# Check for input argument | |
if [[ -z "$1" ]]; then | |
echo "Search for vanity keys - Usage: ./vanity.sh STRING [NUM_PROCESSES]" | |
exit 1 | |
fi |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
As configured in my dotfiles.
start new:
tmux
start new with session name: