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
| Keyboard > Keyboard Shortcuts > Modifier Keys | |
| https://imgur.com/change-alt-cmd-on-ducky-keyboard-FKTW6dQ |
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
| Adding Bootstrap to Rails 7 | |
| Reference: https://www.linkedin.com/pulse/rails-7-bootstrap-52-importmap-md-habibur-rahman-habib/ | |
| INSTRUCTIONS | |
| 1. Add the following to Gemfile: | |
| gem "bootstrap" | |
| gem "sassc-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
| cmd ; |
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
| https://www.iterm2.com/documentation-highlights.html |
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
| time = Time.new(0) | |
| time.utc.strftime("%H:%M:%S") |
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
| sudo chown -R $(whoami):admin /usr/local/* && sudo chmod -R g+rwx /usr/local/* |
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
| rails new app-name -T -d postgresql | |
| Then add gem 'rspec-rails' to Gemfile (test + dev env), bundle, and run: rails generate rspec:install | |
| Also add the following for debugging: | |
| group :development do | |
| gem 'better_errors' | |
| gem 'binding_of_caller' | |
| end |
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
| If you're receiving the following error: | |
| Rails is not currently installed on this system. | |
| Then you're probably on a Ruby version which doesn't have Rails installed. | |
| To fix, switch to a Ruby version which does have Rails installed. | |
| If you've tried to install Rails, and you're receiving a PERMISSIONS error, | |
| then you're probably using the default system-installed Ruby, instead of the Ruby version manager-installed version (e.g. installed using ruby-install). |
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
| If no commands work in the terminal, and you are receiving this error (or similar): | |
| -bash: ls: command not found | |
| Then run: | |
| export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" |
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
| To install chruby and ruby-install: | |
| brew install chruby ruby-install | |
| To install Ruby using ruby-install: | |
| ruby-install ruby 2.7.1 | |
| NOTE: You can find latest stable version of Ruby here: https://www.ruby-lang.org/en/downloads/ | |
| If you have issues installing Ruby then try the following: | |
| brew install openssl@3 | |
| ruby-install 3.2.2 -- --with-openssl-dir=$(brew --prefix openssl@3) |
NewerOlder