Skip to content

Instantly share code, notes, and snippets.

View Someguy123's full-sized avatar

Someguy123 Someguy123

View GitHub Profile
@Someguy123
Someguy123 / node_config.json
Last active May 19, 2020 04:49
example config for steem/hive `data/witness_node_data_dir/p2p/node_config.json`
{
"listen_endpoint": "0.0.0.0:2001",
"accept_incoming_connections": true,
"wait_if_endpoint_is_busy": true,
"private_key": "0000000000000000000000000000000000000000000000000000000000000000",
"desired_number_of_connections": 100,
"maximum_number_of_connections": 200,
"peer_connection_retry_timeout": 30,
"peer_inactivity_timeout": 5,
"peer_advertising_disabled": false,
@Someguy123
Someguy123 / rs_hivemind.sh
Created July 2, 2020 22:35
Hivemind Jussi Restarter Script
#!/usr/bin/env bash
##########################################
#
# Hivemind + Jussi Restarter Script
#
# (C) 2020 Someguy123 ( www.privex.io )
# License: MIT/X11
#
##########################################
@Someguy123
Someguy123 / nginx_hive_rpc_hivemind_health.conf
Created July 22, 2020 01:16
Hive RPC Nginx Config with health endpoint's for Hivemind, Full / Fat Node + Acc Hist - Used by Privex Inc. for direct.hived.privex.io
#######################
#
# Hive RPC Nginx Config with health endpoint's for Hivemind, Full / Fat Node + Acc Hist
#
# (C) 2020 Privex Inc. + Someguy123
# https://www.privex.io https://peakd.com/@someguy123
#
#######################
# Dirty Hack. Causes nginx to retry jussi
@Someguy123
Someguy123 / bitcoin_bits_target_difficulty.py
Created August 10, 2020 01:08
Bitcoin Bits <> Target <> Difficulty conversion code for Python, for decoding the "bits" segment of Bitcoin/Litecoin/Dogecoin etc. block headers
#!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2012 [email protected]
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge,
# publish, distribute, sublicense, and/or sell copies of the Software,
@Someguy123
Someguy123 / dark-cryptofolio.css
Created August 13, 2020 21:44
Dark Cryptofolio CSS Theme
/**
* Dark Cryptofolio.info Theme
* Written by Someguy123 ( https://github.com/Someguy123 )
* License: X11 / MIT
*/
body {
background-color: #3c3c3c;
}
@Someguy123
Someguy123 / loader.py
Last active November 15, 2020 14:58
Hive/Steem RPC node get_block benchmarker // Python AsyncIO using Privex's steem-async library // block_loader.py
#!/usr/bin/env python3.8
"""
# ------------------------------------------------------
#
# Hive/Steem RPC get_block benchmarker
# Written by Someguy123 (github.com/Someguy123)
#
# (C) 2020 Someguy123 / Privex || License: X11 / MIT
# Buy a server from Privex! https://www.privex.io
#
@Someguy123
Someguy123 / Caddyfile
Last active September 4, 2020 02:14
Hive Testnet Auto-deploy Script by Someguy123. `curl -fsSL https://gist.githubusercontent.com/Someguy123/570088fbbb0b6f8929c1da226cb99033/raw/hivetestnet.sh | bash`
# The Caddyfile is an easy way to configure your Caddy web server.
#
# Unless the file starts with a global options block, the first
# uncommented line is always the address of your site.
#
# To use your own domain name (with automatic HTTPS), first make
# sure your domain's A/AAAA DNS records are properly pointed to
# this machine's public IP, then replace the line below with your
# domain name.
:80
@Someguy123
Someguy123 / cmdline.sh
Created November 24, 2020 00:18
Linux Kernel Commandline ( /proc/cmdline ) Parsing Shellscript ( bash sh zsh dash ash ksh ) Functions
#!/usr/bin/env bash
############################################################################################
# Linux Kernel Commandline Parsing Shellscript Functions
#
# These functions have been written in a way that they should be compatible
# with almost any "standard" UNIX/Linux shell, including: sh, bash, ash, dash, zsh
#
# They are designed to be sourced from (or copy pasted into) another shellscript,
# and used to parse / query the Linux kernel commandline ( /proc/cmdline ), or strings
# which use a similar key=value format.

privexinc Privex Inc. #PrivacyMatters We're a cloud services company that cares about your privacy. Belize City, Belize

Keybase proof

I hereby claim:

@Someguy123
Someguy123 / Caddyfile
Created April 27, 2021 10:25
Example worker configs + caddy routing for Matrix Synapse server
############################
# Excerpt of /etc/caddy/Caddyfile from Privex Inc's Synapse server ( matrix.privex.io / privex.io )
# Released under X11 / MIT License
# (C) 2021 Privex Inc. - Affordable + Privacy friendly server hosting at https://www.privex.io
############################
matrix.privex.io, se1.matrix.privex.io {
root * /var/www/html
# Enable the static file server.
file_server
# We hardcode the JSON into the .well-known routes for convenience and fast responses