This tutorial shows how to make backups to Google Cloud Storage. The backups are:
- automatic
- stored off site
- incremental
#!/bin/bash | |
# This file will be sourced in init.sh | |
# https://raw.githubusercontent.com/ai-dock/comfyui/main/config/provisioning/default.sh | |
# Packages are installed after nodes so we can fix them... | |
#DEFAULT_WORKFLOW="https://..." |
from elasticsearch import Elasticsearch, NotFoundError | |
import time | |
# Specify which account you are deleting | |
gameTodelete = ["farmersworld", "alien.worlds", "m.federation"] | |
es = Elasticsearch( | |
['http://localhost:9200'], | |
http_auth=('elastic', 'password') |
#!/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 |
import React, { useState } from 'react'; | |
import { Navbar, NavbarBrand, Nav, NavbarToggler, Collapse, NavItem, Jumbotron, | |
Button, Modal, ModalHeader, ModalBody, | |
Form, FormGroup, Input, Label } from 'reactstrap'; | |
import { NavLink } from 'react-router-dom'; | |
const Header = (props) => { | |
//Hooks | |
const [modal, setModal] = useState(false); | |
const [nav, setNav] = useState(true); |
import React, { useState } from 'react'; | |
import { Navbar, NavbarBrand, Nav, NavbarToggler, Collapse, NavItem, Jumbotron, | |
Button, Modal, ModalHeader, ModalBody, | |
Form, FormGroup, Input, Label } from 'reactstrap'; | |
import { NavLink } from 'react-router-dom'; | |
const Header = (props) => { | |
//Hooks | |
const [modal, setModal] = useState(false); | |
const [nav, setNav] = useState(true); |
#!/usr/bin/env bash | |
# get and unpack golang | |
curl -O https://storage.googleapis.com/golang/go1.10.linux-amd64.tar.gz | |
sudo tar -C /usr/local -xzf go1.10.linux-amd64.tar.gz | |
## create the goApps directory, set GOPATH, and put it on PATH | |
echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.bash_profile | |
echo "export GOPATH=$HOME/go" >> ~/.bash_profile |
pragma solidity ^0.4.20; | |
contract RegisterEos { | |
mapping (address => string) public keys; | |
event LogRegister (address user, string key); | |
#!/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 |
#### Create EOS wallet | |
`cleos.sh wallet create -n walletname` | |
Record the password and keep secure. | |
#### Unlock EOS Wallet | |
`cleos.sh wallet unlock` | |
Paste your wallet password | |
#### Load Generated EOS Account Private Key Into Your Wallet | |
`cleos.sh wallet import <privkey>` | |
#### Create New Account From Your Generated Account |