Skip to content

Instantly share code, notes, and snippets.

View osiloke's full-sized avatar
🎯
Focusing

Osi Emoekpere osiloke

🎯
Focusing
View GitHub Profile
@osiloke
osiloke / Riak error log 2014-11-14
Created November 15, 2014 18:44
Seems like its a ulimit issue?
2014-11-14 15:05:34.195 [error] <0.187.0> File operation error: emfile. Target: /usr/lib/riak/lib/yokozuna-2.0.0-1-g6ac3a63/ebin. Function: list_dir. Process: riak_core_claimant.
2014-11-14 15:05:34.195 [error] <0.187.0> File operation error: emfile. Target: /usr/lib/riak/lib/cluster_info-2.0.0-0-g1fae829/ebin. Function: list_dir. Process: riak_core_claimant.
2014-11-14 15:05:34.195 [error] <0.187.0> File operation error: emfile. Target: /usr/lib/riak/lib/riak_control-2.0.0-1-gadc50dc/ebin. Function: list_dir. Process: riak_core_claimant.
2014-11-14 15:05:34.195 [error] <0.187.0> File operation error: emfile. Target: /usr/lib/riak/lib/erlydtl-0.7.0/ebin. Function: list_dir. Process: riak_core_claimant.
2014-11-14 15:05:34.195 [error] <0.187.0> File operation error: emfile. Target: /usr/lib/riak/lib/riak_auth_mods-2.0.0-1-g9ae39fe/ebin. Function: list_dir. Process: riak_core_claimant.
2014-11-14 15:05:34.195 [error] <0.187.0> File operation error: emfile. Target: /usr/lib/riak/lib/bear-0.1.3p1-0-gda820a1/ebin.
2014-11-15 07:18:12.091 [error] <0.670.0> scan_key_files: error function_clause @ [{riak_kv_bitcask_backend,key_transform_to_1,[<<>>],[{file,"src/riak_kv_bitcask_backend.erl"},{line,99}]},{bitcask,'-scan_key_files/5-fun-0-',7,[{file,"src/bitcask.erl"},{line,1182}]},{bitcask_fileops,fold_keys_int_loop,5,[{file,"src/bitcask_fileops.erl"},{line,595}]},{bitcask_fileops,fold_file_loop,8,[{file,"src/bitcask_fileops.erl"},{line,720}]},{bitcask_fileops,fold_keys_loop,4,[{file,"src/bitcask_fileops.erl"},{line,575}]},{bitcask,scan_key_files,5,[{file,"src/bitcask.erl"},{line,1190}]},{bitcask,init_keydir_scan_key_files,4,[{file,"src/bitcask.erl"},{line,1283}]},{bitcask,init_keydir,4,[{file,"src/bitcask.erl"},{line,1235}]}]
2014-11-15 07:18:12.133 [error] <0.670.0> scan_key_files: error function_clause @ [{riak_kv_bitcask_backend,key_transform_to_1,[<<>>],[{file,"src/riak_kv_bitcask_backend.erl"},{line,99}]},{bitcask,'-scan_key_files/5-fun-0-',7,[{file,"src/bitcask.erl"},{line,1182}]},{bitcask_fileops,fold_keys_int_loop,5
@osiloke
osiloke / gist:448063e7dc54ad167375
Last active August 29, 2015 14:11
Error when compiling of on mac osx
[4/1051] Building CXX object CMakeFiles/openFrameworks.dir/src/openframeworks/3d/ofCamera.cpp.o
FAILED: /usr/bin/clang++ -DFREEIMAGE_LIB -DPOCO_NO_AUTOMATIC_LIB_INIT -DPOCO_STATIC -fcolor-diagnostics -std=gnu++11 -O3 -DNDEBUG -Wno-deprecated-register -I../src/fontconfig -I../src/fontconfig/src -I../src/freeglut -I../src/freeglut/include -I../src/freeimage -I../src/freeimage/OpenEXR -I../src/freeimage/OpenEXR/Half -I../src/freeimage/OpenEXR/Iex -I../src/freeimage/OpenEXR/IlmImf -I../src/freeimage/OpenEXR/IlmThread -I../src/freeimage/OpenEXR/Imath -I../src/glew -I../src/glew/include -I../src/glfw -I../src/glfw/include -I../src/glfw/include/GLFW -I../src/kiss -I../src/kiss/include -I../src/kiss/src -I../src/poco -I../src/poco/Crypto/include -I../src/poco/Crypto/include/Poco -I../src/poco/Crypto/include/Poco/Crypto -I../src/poco/Foundation/include -I../src/poco/Foundation/include/Poco -I../src/poco/Foundation/include/Poco/Dynamic -I../src/poco/Net/include -I../src/poco/Net/include/Poco -I../src/
@osiloke
osiloke / designer.html
Last active August 29, 2015 14:13
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html">
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
@osiloke
osiloke / gist:d6e36e099579ed144a3c
Created January 26, 2015 23:30
Golang backports by tsuru team - Useful for ubuntu 12.04 openvz containers
https://launchpad.net/~tsuru/+archive/ubuntu/golang
sudo add-apt-repository -y ppa:tsuru/golang
import android.content.ContentProvider;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;
import com.progwebtech.android.foodisready.model.BackDrop;
import com.progwebtech.android.foodisready.model.Canteen;
@osiloke
osiloke / mapper.go
Created May 12, 2015 17:02
JsonSchema to bleve mapping
func addSchemaMapper(schema *Schema) {
ix := schema.GetIndexer()
if ix == nil {
println("Schema does not have an indexer")
return
}
unindexedFieldMapping := bleve.NewTextFieldMapping()
unindexedFieldMapping.Index = false
unindexedFieldMapping.Store = false
from collections import deque
import json
from kivy import Logger
import threading
from kivy.clock import Clock
from kivy.network.urlrequest import UrlRequest
from kivy.support import install_twisted_reactor
# from memory_profiler import profile
import zmq
from kivy.compat import queue
@osiloke
osiloke / coordinated.xml
Created December 4, 2015 14:51
coordinated recycleview
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
style="@style/myRecyclerViewStyle"/>
@osiloke
osiloke / smooth.xml
Created December 4, 2015 14:52
smooth appbar
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
style="@style/myRecyclerViewStyle"/>
<me.henrytao.smoothappbarlayout.SmoothAppBarLayout