Skip to content

Instantly share code, notes, and snippets.

View dskliarov's full-sized avatar

Dmitri Skliarov dskliarov

  • OTP Bank
  • Detroit, MI USA
View GitHub Profile
@dskliarov
dskliarov / gist:9dd7f8f13b13ac0cca8bf5bd098d72f4
Last active September 13, 2025 03:23
creating sankey diagram
# Create python file sankey.py
import plotly.graph_objects as go
nodes = [
"Received - 100%", # 0
"Bid - 14.190%", # 1
"No matched flights - 68.132%", # 2
"No eligible flights - 12.596%", # 3
"Bidder - 3.133%", # 4
"Privacy CCPA - 1.631%", # 5
@dskliarov
dskliarov / spacemacs-cpp.md
Created November 10, 2017 14:04 — forked from zarzen/spacemacs-cpp.md
C++ development environment setup in Spacemacs
@dskliarov
dskliarov / macros.md
Created September 7, 2017 19:02 — forked from jessejanderson/macros.md
Don't Write Macros (but do learn how they work)
@dskliarov
dskliarov / macros.md
Created September 7, 2017 19:02 — forked from jessejanderson/macros.md
Don't Write Macros (but do learn how they work)
@dskliarov
dskliarov / dialyzer.mkf
Created July 11, 2016 21:00 — forked from ericbmerritt/dialyzer.mkf
Dialyzer Example Makefile
# -*- mode: Makefile; fill-column: 80; comment-column: 75; -*-
ERL = $(shell which erl)
ERLFLAGS= -pa $(CURDIR)/.eunit -pa $(CURDIR)/ebin -pa $(CURDIR)/*/ebin
REBAR=$(shell which rebar)
ifeq ($(REBAR),)
$(error "Rebar not available on this system")
@dskliarov
dskliarov / README.md
Created January 26, 2016 19:53 — forked from textarcana/README.md
This gist contains everything you need to install StatsD and Graphite on CentOS 6.3.

This gist contains everything you need to install StatsD and Graphite on CentOS 6.3. Unless I forgot something. If I did, shoot a reminder email to noah at one more bug dot com. tl;dr: womm, ymmv, yolo.

I (mostly) followed the steps shown in the EZUnix wiki

And I also referred back to this gist by Michael Grace

@dskliarov
dskliarov / setup-statsd-centos.sh
Created January 26, 2016 19:52 — forked from GregMefford/setup-statsd-centos.sh
Install Graphite and StatsD on CentOS (updated for 6.4 x86_64)
# First do a fresh install of CentOS 5.7 i386, server configuration (no GUI)
# This should be performed as root since it's going to be installing a bunch of stuff
# --- Update things to make sure we have the latest patches ---
# Add EPEL so we can get reasonably recent packages
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# --- Install all the packages --- #
yum -y install python-whisper python-carbon graphite-web python-memcached python-ldap httpd memcached
@dskliarov
dskliarov / statsd.md
Created January 25, 2016 17:23 — forked from trusche/statsd.md
Installing graphite and statsd on OS X Yosemite

Prerequisites

  • Homebrew
  • Python 2.7
  • Git

Graphite

Install Cairo

There's an issue with cairo 14.x that results in the axis fonts on the graphs being HUUUUUGE. Downgrading to 12.6 helps:

@dskliarov
dskliarov / gist:9f4694d51d2d9c7ee88b
Created October 10, 2015 19:12 — forked from klyr/gist:6a213c6c2dd490f5ed43
Display all trace messages
%% Special thanks to Capflam
dbg:tracer(), dbg:p(all, call), dbg:tpl(mod, fun, dbg:fun2ms(fun(_) -> return_trace(), exception_trace() end)).