Skip to content

Instantly share code, notes, and snippets.

View levabd's full-sized avatar
🏠
Working from home

Oleg Levitsky levabd

🏠
Working from home
View GitHub Profile
@levabd
levabd / OpenCV build with GTK and google protobuf Fix.sh
Last active August 30, 2017 14:46
OpenCV build with GTK and google protobuf Fix
#!/bin/bash
mkdir build && cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D WITH_V4L=ON -D WITH_QT=ON -D WITH_OPENGL=ON -DBUILD_EXAMPLES=ON DWITH_OPENGL=ON -DBUILD_TIFF=ON -DWITH_GTK_2_X=ON ../opencv-3.3
make -j16
sudo make install
sudo ldconfig
@levabd
levabd / gist:fc88b8c92bcf7da65b5f1b45264bbc35
Created May 21, 2017 09:42 — forked from abrkn/gist:4159897
bitcoin transaction tracking
var config = require('../config')
, bitcoin = new (require('bitcoin').Client)(config('BTC'))
, async = require('async')
, db = require('./db')
, num = require('num')
, lastHeight
, clientHeight
, blockHash
, minConf = 3
, txConcurrency = 2