Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@larkost
larkost / gist:f0dff8c9b969fd851b24
Created February 23, 2016 23:48
easy_install error on Ubuntu 14.04.4 with Python3.1
This file has been truncated, but you can view the full file.
Searching for gevent
Reading https://pypi.python.org/simple/gevent/
Best match: gevent 1.1rc4
Downloading https://pypi.python.org/packages/source/g/gevent/gevent-1.1rc4.tar.gz#md5=4abe8a99979dd095b145bb2e083dc4ff
Processing gevent-1.1rc4.tar.gz
Writing /tmp/easy_install-ESmk_j/gevent-1.1rc4/setup.cfg
Running gevent-1.1rc4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ESmk_j/gevent-1.1rc4/egg-dist-tmp-6B05QJ
no previously-included directories found matching '*/__pycache__'
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.o' found anywhere in distribution
@larkost
larkost / gist:670c5732a5af3bd1a72c
Last active August 29, 2015 14:25
Compiling RethinkDB while SourceForge is down.

As I write this SourceForge is in "Disaster Recovery mode", which is interfering with the RethinkDB build system's ability to download the Boost library. However, the file needed is still available, so long as you download it using a browser with JavaScript enabled. Unfortunately, without making the system very complicated, we can't work around this in our scripts but you can help the system out in the mean time:

  1. Download the file with a browser: http://downloads.sourceforge.net/project/boost/boost/1.56.0/boost_1_56_0.tar.bz2

  2. Unpack it the file (e.g.: tar -xjf boost_1_56_0.tar.bz2)

  3. Rename the folder to boost_1.56.0 (e.g.: mv boost_1_56_0 boost_1.56.0), and move it to the external folder in your rethinkdb source folder.

This will allow the RethinkDB build system to find it rather than trying to download it again.

@larkost
larkost / Isolate4526
Created July 10, 2015 01:06
Isolate test for RethinkDB issue #4526
var assert = require('assert');
var path = require('path');
var net = require('net')
// -- settings
var driverPort = process.env.RDB_DRIVER_PORT || (process.argv[2] ? parseInt(process.argv[2], 10) : 28015);
var serverHost = process.env.RDB_SERVER_HOST || (process.argv[3] ? parseInt(process.argv[3], 10) : 'localhost');