Skip to content

Instantly share code, notes, and snippets.

View vikas95prasad's full-sized avatar
😎

Vikas Prasad vikas95prasad

😎
View GitHub Profile
# config/routes.rb
resources :documents do
scope module: 'documents' do
resources :versions do
post :restore, on: :member
end
resource :lock
end
end
@vikas95prasad
vikas95prasad / git_squash
Created January 21, 2022 08:18 — forked from dineshpanda/git_squash
Squash commits keeping commit messages
git reset --soft HEAD~n && git commit --edit -m"$(git log --format=%B --reverse HEAD..HEAD@{1})"
* n is the number of commits you want to squash from HEAD
https://www.youtube.com/watch?v=kZcqyuPeDao
https://gist.github.com/nateberkopec/2b1f585046adad9a55e7058c941d3850
https://www.speedshop.co/2015/07/15/the-complete-guide-to-rails-caching.html
https://www.railsspeed.com/
https://www.speedshop.co/2015/07/29/scaling-ruby-apps-to-1000-rpm.html
https://www.speedshop.co/2015/10/07/frontend-performance-chrome-timeline.html
https://github.com/ruby-prof/ruby-prof
https://github.com/schneems/get_process_mem
https://github.com/ko1/allocation_tracer
https://github.com/evanphx/benchmark-ips