Skip to content

Instantly share code, notes, and snippets.

View ankh2054's full-sized avatar

Charles Holtzkampf ankh2054

View GitHub Profile
@ankh2054
ankh2054 / EOSIO_public_node_DOS_protectrion.sh
Last active October 6, 2022 09:45 — forked from cc32d9/EOSIO_public_node_DOS_protectrion.sh
EOSIO public node DOS protectrion
#!/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
@ankh2054
ankh2054 / 1_google_cloud_storage_backup_tutorial.md
Last active May 15, 2023 21:56 — forked from rnwolf/1_google_cloud_storage_backup_tutorial.md
Tutorial shows how to make backups to Google Cloud Storage.

Google Cloud Storage backup tutorial

Introduction

This tutorial shows how to make backups to Google Cloud Storage. The backups are:

  • automatic
  • stored off site
  • incremental
#!/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
@ankh2054
ankh2054 / README.md
Created January 13, 2016 07:36 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@ankh2054
ankh2054 / tmux_cheatsheet.markdown
Last active January 7, 2016 10:32 — forked from henrik/tmux_cheatsheet.markdown
tmux cheatsheet

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: