Skip to content

Instantly share code, notes, and snippets.

@mwenger1
Last active January 3, 2018 03:28
Show Gist options
  • Save mwenger1/d0d387dd289dcd90da22c483f1558ed9 to your computer and use it in GitHub Desktop.
Save mwenger1/d0d387dd289dcd90da22c483f1558ed9 to your computer and use it in GitHub Desktop.

Bash

wget -r -np -k http://sidekiq.org/ => Download Entire Website
:Ag spec/**/*file*
export RAILS_ENV=test => set env value temporarily
ls | wc -l # count number of lines
grep -e FactoryGirl **/*.rake **/*.rb -l | xargs sed -i "" "s|FactoryGirl|FactoryBot|" # replace words in specific files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment