Skip to content

Instantly share code, notes, and snippets.


Siarhei Kavaliou serg-kovalev

View GitHub Profile
View .vimrc
" vimrc
" Author: Zaiste! <>
" Source:
" Have fun!
set nocompatible
filetype on
filetype off
serg-kovalev / rspec_reset_mock.rb
Last active Nov 28, 2017
Reset Mock/Stub in RSpec
View rspec_reset_mock.rb
ruby -rsocket -e "trap('SIGINT') { exit }; Socket.tcp_server_loop(8080) { |s,_| puts s.readpartial(1024); puts; s.puts 'HTTP/1.1 200'; s.close }
serg-kovalev / .ebextensions_01-edit-nginx.config
Last active Aug 16, 2018
Elastic Beanstalk nginx configuration tweaks
View .ebextensions_01-edit-nginx.config
command: "cp -n /opt/elasticbeanstalk/support/conf/nginx_config.erb /opt/elasticbeanstalk/support/conf/nginx_config.erb.original"
command: "sh -c \"sed '/string_to_insert_text_after/ i\
\ text_to_be_inserted;' /opt/elasticbeanstalk/support/conf/nginx_config.erb.original > /opt/elasticbeanstalk/support/conf/nginx_config.erb\""
serg-kovalev /
Created Apr 4, 2019 — forked from hone/
Private GitHub repos with Bundler on Heroku

Setting Up Private GitHub Repos with Bundler on Heroku

To get a private GitHub repo to work on Heroku, you can leverage the netrc buildpack in conjunction with the Heroku Ruby buildpack.

When setting up the Gemfile, make sure to use the https GitHub URL. This mechanism does not work with git+ssh.

gem "some_private_gem", git: ""
You can’t perform that action at this time.