Skip to content

Instantly share code, notes, and snippets.

View e10a's full-sized avatar
😄

ellen e10a

😄
  • Los Angeles, CA
View GitHub Profile
@e10a
e10a / Rails test - run all tests in a directory
Created May 9, 2024 03:23
Rails test - run all test in a directory
ruby -I test test/features/roxy*_test.rb
@e10a
e10a / Rubocop - run specific file or folder
Last active May 8, 2024 12:59
Rubocop - run specific file or folder
# To run a file
rubocop -f files -A test/features/roxy/cart_modal_logged_out/test_cart_promos.rb
# To run a folder
rubocop -f files -A test/features/roxy/cart_modal_logged_out
@e10a
e10a / Gem - install specific version
Created May 6, 2024 19:14
Gem - install specific version
gem install redis -v 4.6.0
@e10a
e10a / Gemfile local
Last active May 7, 2024 00:02
Gemfile local
bundle config install --gemfile=Gemfile.local
# Adds the following to your .bundle/config
BUNDLE_INSTALL: "--gemfile=Gemfile.local"
defaults write com.apple.finder "AppleShowAllFiles" -bool "true" && killall Finder
@e10a
e10a / Git - Pull master without switching branches
Created April 25, 2024 21:21
Git - Pull master without switching branches
git fetch origin master:master
@e10a
e10a / Rocksbox - Turn off captcha
Last active April 25, 2024 09:38
Rocksbox - Turn off captcha
# application.yml
ENABLE_RECAPTCHA: 'false' # ENABLE_RECAPTCHA: 'true'
@e10a
e10a / slim - loops
Last active April 25, 2024 08:46
slim - loops
- @footer_headers = [ \
{:link => 'link1', :name => 'name1' },
{:link => 'link1', :name => 'name1' },
{:link => 'link1', :name => 'name1' }]
div
- @footer_headers.each do | row |
- var = ""
- var = "focus" if row[:focus]
span class="#{var}"
@e10a
e10a / Rails clear cache
Last active May 7, 2024 00:02
Rails clear cache
‎‎​