Skip to content

Instantly share code, notes, and snippets.

View Someguy123's full-sized avatar

Someguy123 Someguy123

View GitHub Profile
@Someguy123
Someguy123 / debian-initramfs-ipv6-hook-script
Last active February 12, 2024 15:41 — forked from zajdee/debian-initramfs-ipv6-hook-script
Scripts to support IPv6 networking in Debian pre-boot (initramfs) environment
#!/bin/sh
##########################################################################################
# Script to be placed in /etc/initramfs-tools/hooks/ipv6
#
# These initramfs IPv6 scripts were originally made by zajdee, and were modified by Someguy123
# at Privex Inc. ( https://www.privex.io ) to fix some issues and add debug logging.
#
# It can be found online here: https://gist.github.com/Someguy123/8092bdc9834aa210fb4bd1523e9a1c38
#
# (Original Gist this was based off of (broken script!): https://gist.github.com/zajdee/65aad61f35d3a63c56c7d1cc76c22e14)
@Someguy123
Someguy123 / insight.py
Last active September 16, 2021 08:06
Python adapter class for the Insight block explorer software - written by Someguy123 at Privex - released under X11 / MIT license
"""
This is a Python adapter class for the Insight block explorer software, which can query the Insight API for
various public block explorers, such as BitPay's multi-coin block explorer ( https://bitpay.com/insight/ ) ,
and Loshan's LiteCore LTC Insight explorer ( https://insight.litecore.io ).
This adapter was written by Chris (Someguy123) ( https://github.com/Someguy123 ), originally
for use in Privex's Payment Gateway ( https://pay.privex.io ), as well as
AnonSteem ( https://anon.steem.network ), and BeeAnon ( https://beeanon.com ).
License: X11 / MIT
@Someguy123
Someguy123 / gpg-upload-key.sh
Created June 2, 2021 13:28
Bash/ZSH function - Enables you to upload one or more GPG / PGP public keys to multiple keyservers in one command.
##################
#
# This is a ZSH/Bash function that helps you to quickly publish one or more GPG keys to
# several keyservers using just one command.
#
# Add the below code to your ~/.bashrc or ~/.zshrc (or put it in a separate file, if you
# understand how and why to source files - whatever you prefer).
#
# You can use it like so:
#
@Someguy123
Someguy123 / swiftcash_ipstat.zsh
Created May 31, 2021 01:09
IP Extraction + IP Stats Functions for ZSH - intended for parsing bitcoind/litecoind/swiftcashd peer stats on the CLI
#!/usr/bin/env zsh
######################################################################################################
#
# IP Extraction + IP Stats Functions for ZSH
# Written by Someguy123 ( https://github.com/Someguy123 || https://www.privex.io )
# Date: 2021-05-31
# License: X11 / MIT
#
# Usage:
# copy paste the commands at the start, to install the deps needed.
@Someguy123
Someguy123 / irc_key_gen.md
Created May 19, 2021 23:11
How to generate an ECDSA NIST256P key / certificate for use on IRC (SASL ECDSA-NIST256p-CHALLENGE) - macOS instructions using openssl, Libera (Freenode), and Textual IRC Client

1. Generating keys

1.1. Generate ECDSA key

Generate private key:

openssl ecparam -name prime256v1 -genkey -out irc_nist256.pem
@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

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 / 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.
@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 / 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
#