Skip to content

Instantly share code, notes, and snippets.

View ankh2054's full-sized avatar

Charles Holtzkampf ankh2054

View GitHub Profile
#!/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://..."
@ankh2054
ankh2054 / clean_alien_farmer_elastic
Last active November 11, 2023 08:06
Delete alien worlds and farmer worlds from Hyperion.
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')
@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
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);
@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
#!/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
@ankh2054
ankh2054 / reproduce
Created June 2, 2018 08:14
Register a better account name and register your BP
#### 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