Skip to content

Instantly share code, notes, and snippets.

View midnightmagic's full-sized avatar
🦑
ಠ_ಠ

midnight midnightmagic

🦑
ಠ_ಠ
View GitHub Profile

Preamble

I really love Lyn Alden for her great write-ups. Her tireless and relentless pursuit of Bitcoin truths, and naturally the fact that she came to almost the same conclusions about Bitcoin as are most compatible with ancient Bitcoiner understanding is very rare: either she is a goddess in terms of digging up high-quality information (my current assumption,) or someone with an ancient Bitcoin understanding is very carefully supplying otherwise heavily obscured information to her over time. Typically new people are bombarded by the lies and massive self-referential echo chambers that Bitcoin attackers have been building for 8 years or more and based on experience it's difficult even for extremely intelligent and capable people to avoid mistakenly integrating at least a few of these lies over time.

Also, it's been very helpful for Lyn to make Bitcoin truths stick in other peoples' heads: I no longer need to repeat so many things ad nauseum, because her charisma is significant and people believe her.

@midnightmagic
midnightmagic / gist:290c3fa5386cbc3dd361763e4080f9fb
Created August 15, 2017 18:47
Earliest mentions of Bitcoin blockchain beamed via space That I Could Find
#bitcoin-dev @20110717 <accel_> ladeies and gentlemen
#bitcoin-dev @20110717 <accel_> what happens to bitcoin
#bitcoin-dev @20110717 <accel_> if ther internetz everz goez downz?
#bitcoin-dev @20110717 <senseles> hope that some people put up free to use cubesats
#bitcoin-dev @20110717 <senseles> i want my own cube sat :(
#bitcoin-dev @20110717 <accel_> can the bitcoin block discovery every 10 minutes
#bitcoin-dev @20110717 <accel_> run over cube sats, whatever they mayb e?
#bitcoin-dev @20110717 <senseles> it's a 50,000$ satellite
#bitcoin-dev @20110717 <senseles> 100,000$ including launch
#bitcoin-dev @20110717 <accel_> so that's like what, 5K btc?
@midnightmagic
midnightmagic / build_btc_pub.sh
Created August 18, 2016 01:48
simple, messy build script to demonstrate gitian build actions
#!/bin/bash
export USE_LXC=1
export NUM_PROCS=30
export MEMORY_USE=45000
export SIGNER=0x28DF2724F241D8EE
export SIGNERNAME=midnightmagic
export ROOTBUILD=/path/to/root/build/dir
export DOSIGS=${DOSIGS:-yes}
@midnightmagic
midnightmagic / framedump-on-SIGUSR1.patch
Created October 21, 2015 10:26
Adds SIGUSR1 framedump to messages.log for Limnoria supybot, applies to: 685bedcd74daa06bf9d785ca575b47257f7d3322
*** supybot 2015-10-03 04:25:29.211350138 -0700
--- /opt-limnoria-old/bin/supybot 2015-10-10 03:59:25.091350138 -0700
***************
*** 1,4 ****
! #!/usr/bin/env python
###
# Copyright (c) 2003-2004, Jeremiah Fincher
--- 1,4 ----
! #!/usr/bin/python
@midnightmagic
midnightmagic / l24-raw.pl
Created October 10, 2014 23:59
Messy example of serial RPC bitcoin connections in Perl
#!/usr/bin/perl
use JSON;
use Data::Dumper;
use JSON::RPC::Client;
use POSIX;
use LWP;
if ($#ARGV + 1 < 1) {
# print "Current $ARGV[0] replacing with 0 due to ".$#ARGV." < 1\n";
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
4e25f14bdbe817bb88bb9a99ae10049990e99546015a1071e77b8c9b090893ff namecoind
I built the above binary from the git commitid:
db10ddb1a712e499068b477af027a3110b3aad3b from:
https://github.com/namecoin/namecoin/tree/relay_tmp_fix
Which I retrieved from github's namecoin repo.
@midnightmagic
midnightmagic / searchtx.sh
Created September 17, 2012 06:37
search bitcoin tx for amounts
#!/bin/bash
if [ $# -ne 2 ]
then
echo usage: $0 '[top|head|N] [tail|bottom|-M|M]'
echo " "-M means first arg minus integer M
exit 1
fi
FIRST=$1; [ "$1" = "head" -o "$1" = "top" ] && \
@midnightmagic
midnightmagic / buildfail
Created September 7, 2012 19:05
rpmbuild failure of CentOS kernel on Ubuntu 12.04 LTS host
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.hybh6l
+ umask 022
+ cd /v/soft/kern/kernel/BUILD
+ patch_command=patch -p1 -F1 -s
+ [ ! -d kernel-2.6.32-279.5.2.el6/vanilla-2.6.32-279.5.2.el6/ ]
+ cd kernel-2.6.32-279.5.2.el6/
+ [ -d linux-2.6.32-279.5.2.el6.centos.plus.x86_64 ]
+ rm -rf deleteme.x86_64
+ mv linux-2.6.32-279.5.2.el6.centos.plus.x86_64 deleteme.x86_64
+ rm+ rf deleteme.x86_64
@midnightmagic
midnightmagic / kanoi-f4d2863dd674f73f23012e56ed59f0013913431d.cc
Created July 4, 2012 19:16
kanoi's old commit that fixed icarus DOA for me
commit f4d2863dd674f73f23012e56ed59f0013913431d
Author: Kano <root@mutsumi.paige>
Date: Fri Mar 30 18:54:14 2012 +1100
icarus.c reduce stale by aborting work on LP
diff --git a/configure.ac b/configure.ac
index bdef687..7e18d95 100644
--- a/configure.ac
+++ b/configure.ac
#define LINUX 1
#include "adl_sdk.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>