Skip to content

Instantly share code, notes, and snippets.

I ran into this at work this week (also on RHEL6.5). I believe the lib-device-mapper that you have isn't exporting a symbol ("Base") that Docker needs. I solved this by upgrading lib-device-mapper to version 1.02.90.
You may have to enable the public_ol6_latest repo in order to get this package.
sudo yum-config-manager --enable public_ol6_latest
And then install the package:
sudo yum install device-mapper-event-libs
@joeljacobson
joeljacobson / kickstart
Created September 1, 2014 12:15 — forked from ludo/kickstart
lang en_US
langsupport en_US
keyboard us
timezone Etc/UTC
text
install
skipx
halt
# Ridiculous URL... I know...
@joeljacobson
joeljacobson / setsdemo.erl
Created March 25, 2014 16:15
setsdemo.erl
-module(partdemo).
-compile(export_all).
part() ->
true = rpc:call('[email protected]', erlang, set_cookie, ['[email protected]', riak2]),
true = erlang:set_cookie(node(), riak2),
true = rpc:call('[email protected]', erlang, disconnect_node, ['[email protected]']),
true = rpc:call('[email protected]', erlang, disconnect_node, ['[email protected]']),
true = erlang:disconnect_node('[email protected]'),
true = erlang:disconnect_node('[email protected]'),
@joeljacobson
joeljacobson / setsdemo.html
Created March 25, 2014 16:14
setsdemo.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>RSVP</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<script src="http://fb.me/react-0.9.0.js"></script>
<script src="http://fb.me/JSXTransformer-0.9.0.js"></script>
<script src="http://code.jquery.com/jquery-1.10.0.min.js"></script>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
</head>
@joeljacobson
joeljacobson / setsdemo.js
Created March 25, 2014 16:13
setsdemo.js
/**
* @jsx React.DOM
*/
var set_url = "/types/sets/buckets/demo/datatypes/rsvps";
var reload_data = function(data) {
React.renderComponent(<RSVPApp context={data.context}
entries={data.value} />,
document.getElementById('content'));
@joeljacobson
joeljacobson / CRDT.md
Created February 21, 2014 19:32
CRDT Examples

Bucket Types

Bucket types were added in 2.0 to eliminate the need for each bucket to have it's own custom bucket properties. If buckets share the same custom bucket properies, a bucket type can be created for them.

Creating Bucket Types

To get started, you'll want to create a new bucket type with:

riak-admin bucket-type create  
@joeljacobson
joeljacobson / bulk_import.py
Created February 17, 2014 21:44
python, riak bulk import
import csv
import json
import riak
# dna,sex,name,address,city,state,zip,social,dob,phone,occupation,blood,weight,lat,long
client = riak.RiakClient(pb_port=8087, protocol='pbc')
bucket = client.bucket('za')
f = open("/usr/src/ZA10k.csv", "r")
@joeljacobson
joeljacobson / ansible-riak-devrel.yml
Last active April 25, 2017 20:43
Ansible playbook to get Riak, Gateone SSH and Deps installed on Ubuntu
---
- name: Training Provision
hosts: all
user: ubuntu
sudo: True
tasks:
- name: update
command: apt-get update
- name: install all required deps
@joeljacobson
joeljacobson / gist:4126175
Created November 21, 2012 17:21 — forked from justinholmes/gist:1524914
Play2.0 Facebook Login
object Application extends Controller {
val FBAppId = "AppIdGoesHere"
val FBAppSecret = "FBAppSecretGoesHere"
def fbLogin = Action {Redirect("https://www.facebook.com/dialog/oauth?scope=user_birthday,email,user_about_me,user_location,offline_access,publish_stream,user_education_history,user_checkins" +
"&client_id="+FBAppId+"&redirect_uri="+URLEncoder.encode("http://domainname.com/fbLogin/code","UTF-8"))}
def fbLoginCode(code:String) = Action{response =>
val ws = WS.url("https://graph.facebook.com/oauth/access_token?client_id="+FBAppId+"&redirect_uri" +