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 / Readme.md
Last active November 15, 2022 02:46
Jupiter Notebook 5 Dark Theme custom css

Installing

To install this theme, copy or symlink custom.css into ~/.jupyter/custom/ (create that directory if it doesn't exist.) Then, whenever you run jupyter notebook, iruby notebook, etc. it will use this theme.

@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
@levabd
levabd / memcached.json
Created September 6, 2016 18:54
Memcached + PHP memcache recipe for stack-updater
[
{
"name": "Memcached",
"command": "/usr/bin/dpkg -l | awk '$2==\"memcached\" { print $3 }'",
"required": "1.4.14",
"comparison": ">=",
"installer": "memcached.sh",
"order": "1"
},
{
@levabd
levabd / supervisor.json
Created September 6, 2016 18:47
Supervisor recipe for stack-updater
[
{
"name": "SupervisorD",
"command": "/usr/bin/supervisord -v",
"required": "3.0.0",
"comparison": ">=",
"installer": "supervisord.sh",
"order": "1"
}
]
@levabd
levabd / rsync.json
Created September 6, 2016 18:45
Rsync recipe for stack-updater
[
{
"name": "Rsync",
"command": "/usr/bin/dpkg -l | awk '$2==\"rsync\" { print $3 }'",
"required": "3.1.1",
"comparison": ">=",
"installer": "rsync.sh",
"order": "1"
}
]
@levabd
levabd / README.md
Last active September 14, 2016 04:35
Npm recipe for stack-updater

JS Build tool with Node.js

  • Node.js
  • Npm
  • Bower
  • Gulp
@levabd
levabd / beanstalkd.json
Last active September 6, 2016 18:39
Beanstalkd recipe for stack-updater
[
{
"name": "Beanstalkd",
"command": "/usr/bin/dpkg -l | awk '$2==\"beanstalkd\" { print $3 }'",
"required": "1.10",
"comparison": ">=",
"installer": "beanstalkd.sh",
"order": "1"
}
]
@levabd
levabd / db_backup.sh
Created July 5, 2016 15:43 — forked from bendavis78/db_backup.sh
A simple database backup / rotation / prune script
#!/bin/bash
# for use with cron, eg:
# 0 3 * * * postgres /var/db/db_backup.sh foo_db
if [[ -z "$1" ]]; then
echo "Usage: $0 <db_name> [pg_dump args]"
exit 1
fi
@levabd
levabd / README.md
Last active January 23, 2017 05:42
Laravel 5.2 recipe for stack-updater

Simple Laravel 5.2 stack with web serer (php-fpm) and db drivers

  • NGINX
  • PHP7
  • PHP mongo driver for php-fpm and php-cli
  • PHP mbstring module
  • PHP bz2 module
  • PHP imagick module
  • Memcached + PHP memcached
  • Mysql PHP driver