Skip to content

Instantly share code, notes, and snippets.

@brentalanmiller
brentalanmiller / boost_uuid_trunc.cpp
Created August 24, 2018 03:26
Boost UUID truncates long string UUIDs without error
#include <iostream>
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <boost/uuid/string_generator.hpp>
int main() {
boost::uuids::string_generator gen;
boost::uuids::uuid u = {};

Keybase proof

I hereby claim:

  • I am brentalanmiller on github.
  • I am brentalanmiller (https://keybase.io/brentalanmiller) on keybase.
  • I have a public key ASBCd93ZC2mjquVGtLLLV_oM6lt7KfdJwgm40ZkKAvCksgo

To claim this, I am signing this object:

@brentalanmiller
brentalanmiller / rinkeby.txt
Last active October 19, 2017 05:37
rinkeby
0x3d6c8964cf545169dd0c31f463270e90eedd443b
@brentalanmiller
brentalanmiller / motor_deadlock.py
Created May 8, 2015 18:23
MongoDB Motor Deadlock
import json
import random
import motor
from tornado import gen, ioloop, web
@gen.coroutine
def get_data():
cur1 = _client.test.testcol1.find()
cur2 = _client.test.testcol2.find()