Skip to content

Instantly share code, notes, and snippets.

Siarhei Kavaliou serg-kovalev

Block or report user

Report or block serg-kovalev

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
View .vimrc
" vimrc
" Author: Zaiste! <oh@zaiste.net>
" Source: https://github.com/zaiste/vimified
"
" Have fun!
"
"
set nocompatible
filetype on
filetype off
@serg-kovalev
serg-kovalev / rspec_reset_mock.rb
Last active Nov 28, 2017
Reset Mock/Stub in RSpec
View rspec_reset_mock.rb
RSpec::Mocks.space.proxy_for(SomeClass).reset
View http_debug_server.sh
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
serg-kovalev / .ebextensions_01-edit-nginx.config
Last active Aug 16, 2018
Elastic Beanstalk nginx configuration tweaks
View .ebextensions_01-edit-nginx.config
#.ebextensions/01-edit-nginx.config
container_commands:
01backup_config:
command: "cp -n /opt/elasticbeanstalk/support/conf/nginx_config.erb /opt/elasticbeanstalk/support/conf/nginx_config.erb.original"
02edit_config:
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
serg-kovalev / readme.md
Created Apr 4, 2019 — forked from hone/readme.md
Private GitHub repos with Bundler on Heroku
View readme.md

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: "https://github.com/org/some_private_gem.git"
You can’t perform that action at this time.