Skip to content

Instantly share code, notes, and snippets.

0x155d3af47e7693d571116c29cfce977c1ca8b4e1214295ac0b401c4c4a13aaf1

@AFDudley
AFDudley / A887B036F9E93223-public.gpg
Created August 17, 2020 19:58
For Filecoin Ceremony
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFeJWcgBEADsaI7wjSyPBpbzfp00U3pWcDUGXqdMJkcQazi63/LVeTO8Ml34
kte/MElAsb8FnljIAWxB9SguU0tD9deDqky8CYylxTljsSD32bJ9jVXKM8kY269H
uLafz9Ynm1TbCRg2HagoMoUwvAXijBUxFZW0EVMlbGqHhWsX/nREPVtTLSEfCC5o
gAv+37YI2A4vNlbwXDVhA79PD9ELN+QVbsNY78cisg1YumHoL7BpzF4GMf4uEUDU
y6JQyCQFg60VEQ4G5Y498iMsLYrkRHjrVrA0/2FNelXsEj9PMqLPvJVmfXUfgKuG
mhDWq6K3S+MQmtBnaI2/qT1/I7Emgs2O9yAZnVxWm9HoYGcHSXZ8i/rYZoT2v0UY
AqUsAV2S0b9SXqZHXavOej8QZKykWHUt3MmNsH0r+fisFNbo9w8cW/NNxdjcUOqY
OZ3SjyWJ5f/PwZ2HESD1GL3Leh6QMi2nx2Q8xong6kyegpZN/sQPXtNNV3kxLUUy
@AFDudley
AFDudley / 20200806-reorg.txt
Last active August 6, 2020 18:08
Is this normal?
INFO [08-06|17:16:33.643] Chain reorg detected number=10607549 hash=972239…432119 drop=1 dropfrom=276a44…8d5c01 add=1 addfrom=57923e…266baa
INFO [08-06|17:16:33.648] Imported new chain segment blocks=1 txs=160 mgas=12.487 elapsed=409.521ms mgasps=30.491 number=10607550 hash=57923e…266baa dirty=0.00B
ERROR[08-06|17:16:33.712] Demoting invalidated transaction hash=620646…b34d6f
ERROR[08-06|17:16:33.712] Demoting invalidated transaction hash=224f65…807f0b
ERROR[08-06|17:16:33.712] Demoting invalidated transaction hash=13a1b1…365399
ERROR[08-06|17:16:33.712] Demoting invalidated transaction hash=5f496b…454d3d
ERROR[08-06|17:16:33.712] Demoting invalidated transaction hash=105584…275636
ERROR[08-06|17:16:33.713] Demoting invalidated transaction hash=f25754…4f44a6
ERROR[08-06|17:16:33.713] Demoting invalidated transaction hash=2cd531…3052c5
ERROR[08-06|17:16:33.713] Demoting invalidated transaction hash=86d7de…3cf1
Verifying that "afdudley.id" is my Blockstack ID. https://onename.com/afdudley
# This is python2 code
import urllib
import sha3 # pip install pysha3
message = urllib.urlopen('http://pastebin.com/raw/CcGUBgDG').read()
clean = message.split('=====\r\n')[1].split('=====')[0].replace('\r\n', '\n').strip()
print sha3.sha3_256(clean).hexdigest()
@AFDudley
AFDudley / NominatimOnEC2.md
Created January 7, 2016 23:19 — forked from econandrew/NominatimOnEC2.md
Instructions for installing an OpenStreetMap Nominatim geocoder instance on Amazon Linux / EC2 (Dec 2014)

Installing Nominatim on Amazon Linux / EC2

  1. Introduction

The official instructions for installing Nominatim are complete, but brief in places, and several steps must be changed in the Amazon Linux environment (which is roughly CentOS / Redhat). The steps below are rough record of what I did to get it working, but I didn't keep perfect track so you shouldn't rely on them as a shell script. Just follow each step, make sure it worked, and hopefully you'll need to adapt very little (version numbers, for one thing). (I also skip in and out of root, but you can be more careful if you like.)

  1. Setting up the EC2 instance

@AFDudley
AFDudley / country_codes.json
Created January 2, 2016 10:05 — forked from orenitamar/country_codes.json
Two letter country code mapping, grouped by continent/region
{
"europe": {
"va": "vatican city",
"ch": "switzerland",
"ad": "andorra",
"ee": "estonia",
"is": "iceland",
"am": "armenia",
"al": "albania",
"cz": "czech republic",

Keybase proof

I hereby claim:

  • I am afdudley on github.
  • I am afdudley (https://keybase.io/afdudley) on keybase.
  • I have a public key whose fingerprint is 003B 5F2C 6AFA 3C0D 42FE 3048 015F 3530 DD28 A12A

To claim this, I am signing this object:

# Place this command in your .bashrc (or whatever is appropriate for your shell of choice).
alias aws='client=$1 source ~/bin/aws.sh $client'