Skip to content

Instantly share code, notes, and snippets.

View sedovolosiy's full-sized avatar

Serhii Siedovolosij sedovolosiy

View GitHub Profile
@sedovolosiy
sedovolosiy / api_logger.rb
Created October 26, 2020 14:01 — forked from dblock/api_logger.rb
API logger with Grape under Rails
class ApiLogger < Grape::Middleware::Base
def before
Rails.logger.info "[api] Requested: #{request_log_data.to_json}\n" +
"[api] #{response_log_data[:description]} #{response_log_data[:source_file]}:#{response_log_data[:source_line]}"
end
private
def request_log_data
@sedovolosiy
sedovolosiy / multiple_ssh_setting.md
Created January 21, 2018 11:13 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@sedovolosiy
sedovolosiy / install-opencv-2.4.13-in-ubuntu.sh
Created August 9, 2016 22:03 — forked from arthurbeggs/install_opencv2_ubuntu.sh
Install opencv-2.4.13 in Ubuntu 16.04
# install dependencies
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y cmake
sudo apt-get install -y libgtk2.0-dev
sudo apt-get install -y pkg-config
sudo apt-get install -y python-numpy python-dev
sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install -y libjpeg-dev libpng12-dev libtiff5-dev libjasper-dev