Skip to content

Instantly share code, notes, and snippets.

Working as always

Yaroslav Barkovskiy DCrow

Working as always
Block or report user

Report or block DCrow

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
DCrow / dump_backtrace.rb
Last active Jul 11, 2018
Sidekiq cli threads
View dump_backtrace.rb
# Sidekiq process structure
# 1 main thread
# 1 heartbeat thread
# 1 scheduled thread
# options[:concurency] manager threads
# If using sidekiq-scheduler gem
# 1 rufus scheduler thread
# Some arbitrary number up to :max_work_threads
DCrow / device_driver.cpp
Last active Mar 29, 2017
How to wrap a C struct in a ruby extension
View device_driver.cpp
#include "ruby.h"
typedef VALUE (ruby_method)(...);
VALUE DeviceDriver = Qnil;
struct conn {
VALUE settings;
connection *conn_ptr;
You can’t perform that action at this time.