This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
| "cols": | |
| [ | |
| 0, | |
| 1 | |
| ], | |
| "ensure_newline_at_eof_on_save": true, | |
| "file_exclude_patterns": | |
| [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "color_scheme": "Packages/RailsCasts Colour Scheme/RailsCastsColorScheme.tmTheme", | |
| "cols": | |
| [ | |
| 0, | |
| 1 | |
| ], | |
| "ensure_newline_at_eof_on_save": true, | |
| "file_exclude_patterns": | |
| [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git add -A && git commit -m "alterações" | |
| git push origin master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dropdb DATABASE | |
| rails db:create | |
| heroku pg:backups:capture --app APPNAME | |
| rm -rf latest.dump | |
| heroku pg:backups:download --app APPNAME | |
| pg_restore --verbose --clean --no-acl --no-owner -h localhost -d DATABASE latest.dump | |
| rails db:migrate | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rake -T | |
| rake build | |
| rake install | |
| rake release |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo "export PS1='\W \$ '" >> ~/.bash_profile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lsof -i :3000 | |
| kill -9 <PID> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -------------- | |
| # REMOVE ROADIE AND ADD PREMAILER | |
| # -------------- | |
| - gem 'roadie', '~> 2.4.3' | |
| + gem 'premailer-rails' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # config/initializers/quiet_assets.rb | |
| if Rails.env.development? | |
| Rails.application.assets.try(:logger=, Logger.new('/dev/null')) | |
| Rails::Rack::Logger.class_eval do | |
| def call_with_quiet_assets(env) | |
| previous_level = Rails.logger.level | |
| Rails.logger.level = Logger::ERROR if env['PATH_INFO'] =~ %r{^/assets/} | |
| call_without_quiet_assets(env) | |
| ensure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def fix_exif_rotation #this is my attempted solution | |
| manipulate! do |img| | |
| img.tap(&:auto_orient) | |
| end | |
| end | |
| process :fix_exif_rotation |
OlderNewer