Skip to content

Instantly share code, notes, and snippets.

jomo jomo

Block or report user

Report or block jomo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View README.md
@jomo
jomo / README.md
Last active May 18, 2019
Tracking down Minecraft account creation
View README.md

Tracks down when a Minecraft account was created.

How it works

Mojang has an API endpoint for usernames:

https://api.mojang.com/users/profiles/minecraft/<name>?at=<timestamp>

It can be used to find the UUID of an account, by username it used at the given time.
It returns either 200 OK or 204 No Content – indicating that the username was not in use at the time.

@jomo
jomo / email.md
Created Aug 10, 2015
Accidental repeated emails: sorry! - Google Code Jam
View email.md

A few hours ago, the automated email system for Code Jam went a little bit crazy. I'll write about the technical details below, but the short version is that it sent an email titled "Registration Now Open for Google Code Jam 2014!" more than 20 times to a large number of registrants from 2013. You're receiving this email because our systems indicate that you're one of them.

I'm writing this to apologize: we didn't intend to send anyone more than one email, but a bug crept in to a refactoring of our mail system and ruined those plans. On behalf of the Code Jam team and Google, I'm sorry; we'll work hard to make sure this doesn't happen again. Later in this email, I've included answers to some questions you might have. If you'd like to talk about this further, please send us an email at codejam@google.com.

Sincerely, Bartholomew Furrow, on behalf of the Code Jam team.

Why did I get the repeated email at all?

We sent the notification email to users who registered for Code Jam 2013, checked the box saying

@jomo
jomo / readme.md
Last active Aug 29, 2015
Google transparency report: EU privacy removals
View readme.md
@jomo
jomo / brainwallet.js
Last active Apr 13, 2018
Brainwallet.org | Password → Private Key
View brainwallet.js
var Bitcoin = require("bitcoinjs-lib"); // npm install bitcoinjs-lib@0.2
var Crypto = require("cryptojs").Crypto;
var request = require("request");
var fs = require("fs");
function brainwallet(password, callback) {
var hash = Crypto.util.hexToBytes(Crypto.SHA256(password));
var eckey = new Bitcoin.ECKey(hash);
var addr = eckey.getAddress().toString();
@jomo
jomo / README.md
Created Mar 28, 2015
Canvas vs LWIP performance test
View README.md

Canvas vs LWIP performance test

Very simple test case that compares the performance of lwip vs node-canvas (which uses Cairo) when cropping an image to 8x8.

On my machine lwip was about 3 times faster than canvas

@jomo
jomo / ascii_ip.rb
Last active Aug 29, 2015
converts ipv4 or ipv6 adresses to nice ascii art
View ascii_ip.rb
#!/usr/bin/ruby
#
# ./ascii_ip.rb "1.2.3.4"
ascii = {}
ascii['0'] = []
ascii['0'][0] = '##### '
ascii['0'][1] = '# # '
@jomo
jomo / uuidconverter.py
Last active Jun 20, 2019
Minecraft username to UUID converter
View uuidconverter.py
#!/usr/bin/python
# USAGE:
# ./uuidconverter <file-in> <file-out>
# file-in: a file with 1 username per line
# file-out: a file where name<tab>uuid are written to (appended)
from __future__ import print_function
import sys
View keybase.md

Keybase proof

I hereby claim:

  • I am jomo on github.
  • I am jomo (https://keybase.io/jomo) on keybase.
  • I have a public key whose fingerprint is 9D45 B888 BC8B FCE6 5494 B7DF D095 5851 4377 69E2

To claim this, I am signing this object:

You can’t perform that action at this time.