Skip to content

Instantly share code, notes, and snippets.

View Someguy123's full-sized avatar

Someguy123 Someguy123

View GitHub Profile

Keybase proof

I hereby claim:

  • I am someguy123 on github.
  • I am someguy123 (https://keybase.io/someguy123) on keybase.
  • I have a public key whose fingerprint is 002D E5E5 D327 EABE F4AA C5DC F9EB 561A 4F6A A8A0

To claim this, I am signing this object:

@Someguy123
Someguy123 / bitcoinjs.min.js
Last active June 11, 2023 07:35
Compiled BitcoinJS ( http://bitcoinjs.org )
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Bitcoin=e()}}(function(){var define,module,exports;return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){function BigInteger(a,b,c){if(!(this instanceof BigInteger))return new BigInteger(a,b,c);if(a!=null){if("number"==typeof a)this.fromNumber(a,b,c);else if(b==null&&"string"!=typeof a)this.fromString(a,256);else this.fromSt
@Someguy123
Someguy123 / gist:09466abf2f071abe7a62
Created January 10, 2015 13:05
JS Helper - inObject - verify that multiple keys exist in an object
/*
The MIT License (MIT)
Copyright (c) 2015 Someguy123 (http://someguy123.com)
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, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@Someguy123
Someguy123 / steemit.css
Created August 18, 2016 02:06
Macdown Styles for Steemit
@import "https://fonts.googleapis.com/css?family=Source+Serif+Pro:400,600";
*{margin:0;padding:0;}
body {
font: 20.16px "Source Serif Pro",serif;
/*font:13.34px helvetica,arial,freesans,clean,sans-serif;*/
color:black;
line-height:1.4em;
background-color: rgb(254,254,254);
padding: 0.7em;
#!/bin/bash
#
# Someguy123's Price Feed installer script
# https://github.com/someguy123 - https://someguy123.com
# https://steemit.com/@someguy123
# Released under the GNU GPL 3 license
#
# Update environment file
@Someguy123
Someguy123 / filter_bitaddress.bash
Last active September 20, 2016 04:34
Extract only spent private keys from a BitAddress/LiteAddress text file
# This means to build an array () based on line breaks in the file
# allowing us to use it with a for loop
LFS='
'
# btcaddrs contains addresses that are actually used
addresses=($(cat btcaddrs.txt))
# filter the bitaddress file btc.txt to only contain used addresses
# then spit out the un-quoted private keys
(for a in $addresses; do grep $a btc.txt; done) | awk '{ split($0,a,","); print a[3] }' | tr -d '"'
@Someguy123
Someguy123 / logwatcher.sh
Created September 15, 2018 00:17
get timestamps on your steem docker logs
#!/bin/bash
# get timestamps on your steem docker logs
# by @someguy123
: ${DOCKER_NAME=seed}
LOG_PATH=$(docker inspect $DOCKER_NAME | jq -r .[0].LogPath)
pipe=/tmp/dkpipe.fifo
trap "rm -f $pipe" EXIT
if [[ ! -p $pipe ]]; then
mkfifo $pipe
@Someguy123
Someguy123 / deswappify.pl
Last active February 11, 2024 19:34 — forked from WGH-/deswappify.pl
#!/usr/bin/perl
use strict;
use Fcntl qw(SEEK_SET);
sub deswappify {
my $pid = shift;
my $fh = undef;
my $start_addr;
@Someguy123
Someguy123 / growpart.sh
Created August 25, 2019 05:10
Growpart patched for alpine linux - place in /usr/bin/growpart and chmod +x
#!/bin/sh
# Copyright (C) 2011 Canonical Ltd.
# Copyright (C) 2013 Hewlett-Packard Development Company, L.P.
#
# Authors: Scott Moser <smoser@canonical.com>
# Juerg Haefliger <juerg.haefliger@hp.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
@Someguy123
Someguy123 / config.lua
Created April 19, 2020 00:48
A dump of PowerDNS Lua scripting/configuration used for maintaining a DNS seed/pool domain (returns multiple A/AAAA records based on available servers), such as Privex's Chrony (time server) pool
--
-- Name: configv4.chrony.privex.cc
-- Type: LUA
-- Value: LUA "include('g_a'); SEv4={g_a('se1', 1), g_a('se2', 1)} DEv4={g_a('de1', 1), g_a('de2', 1)} FIv4={g_a('fi1', 1)}"
--
include('g_a');
SEv4={g_a('se1', 1), g_a('se2', 1)}
DEv4={g_a('de1', 1), g_a('de2', 1)}
FIv4={g_a('fi1', 1)}