Skip to content

Instantly share code, notes, and snippets.

View mikeyb's full-sized avatar

Baby Goat mikeyb

View GitHub Profile
@mikeyb
mikeyb / chips
Created September 8, 2016 16:23
contract owned {
address public owner;
function owned() {
owner = msg.sender;
}
modifier onlyOwner {
if (msg.sender != owner) throw;
_
@mikeyb
mikeyb / WebSocketHelper.ts
Created February 6, 2017 18:00 — forked from hmdhk/WebSocketHelper.ts
A websocket helper class written in typescript for use with angularjs
module Utilities {
export class WebSocketHelper {
constructor(private $q: ng.IQService, private url: string, private connectionInterval = 5000) {
}
private wsPromise: ng.IPromise<WebSocket>;
private createWebSocket(): ng.IPromise<WebSocket> {
var d = this.$q.defer();
@mikeyb
mikeyb / detect-card-type.js
Created June 29, 2017 03:51 — forked from craigmaslowski/detect-card-type.js
Credit Card Type Detection
// card type prefixes sourced from: https://en.wikipedia.org/wiki/Bank_card_number#Issuer_identification_number_.28IIN.29
var cardTypes = {
'American Express': [
[34],
[37]
],
'Diners Club Intl': [
[300, 305],
[309],
[36],
@mikeyb
mikeyb / devices.js
Created June 29, 2017 04:02 — forked from paudirac/devices.js
Mithril demonstration.
var m = require('mithril');
var devices = {};
devices.controller = function() {
let url = "http://localhost:8989/devices";
return {
devices: m.request({method: "GET", url: url }),
remove: function(name) {
return m.request({ method: "DELETE", url: `${url}/${name}` });
}
Adrien Tétar <adri-from-59@hotmail.fr>
Alan Andrade <alan.andradec@gmail.com>
Alexandros Tasos <sdi1100085@di.uoa.gr>
Alex Crichton <alex@alexcrichton.com>
a_m0d <damien.schoof@gmail.com>
Andreas Neuhaus <zargony@zargony.com>
Andreas Ots <andreasots@gmail.com>
Andrei Formiga <archimedes_siracusa@hotmail.com>
Benjamin Herr <ben@0x539.de>
Benjamin Peterson <benjamin@python.org>
@mikeyb
mikeyb / satoshistreasure.md
Created April 16, 2019 20:30 — forked from johncantrell97/satoshistreasure.md
How I Obtained Satoshi's Treasure Keys 1, 2, and 3 in Minutes

Today (April 16th 2019 at noon) the first major clues to discover key #1 was set to be released in a few cities. A QR code with the words 'orbital' were found at these locations and looked like this: (https://imgur.com/a/6rNmz7T). If you read the QR code with your phone you will be directed to this url: https://satoshistreasure.xyz/k1

At this URL you are prompted to input a passphrase to decrypt the first shard. An obvious first guess was to try the word 'orbital' from the QR code. Not suprisingly this worked! This reveals a congratulations page and presents the first key shard:

ST-0001-a36e904f9431ff6b18079881a20af2b3403b86b4a6bace5f3a6a47e945b95cce937c415bedaad6c86bb86b59f0b1d137442537a8.

Now, we were supposed to wait until April 17th to get clues from the other cities for keys #2 and #3 but that wouldn't stop me from digging around with all the new information we had. All that time "playing" notpron (http://notpron.org/notpron/) years ago was going to help me here.

The first thing I noticed was