This file contains 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
1. Super key: Opens Activities search (Windows key!) | |
2. Ctrl+Alt+T: Ubuntu terminal shortcut | |
3. Super+L or Ctrl+Alt+L: Locks the screen | |
4. Super+D or Ctrl+Alt+D: Show desktop | |
5. Super+A: Shows the application menu | |
6. Super+Tab or Alt+Tab: Switch between running applications | |
7. Super+Arrow keys: Snap windows | |
8. Super+M: Toggle notification tray | |
9. Super+Space: Change input keyboard (for multilingual setup) |
This file contains 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
1. You mast have a public key from your mashine stored on github as SSH key here: | |
https://github.com/settings/ssh | |
How to create ssh key on unix/mac os x: | |
- Open terminal, go to the root typing: $ cd ~ (recommended) | |
- Type: ssh-keygen -t rsa -C "your@email.address" | |
- To secure your ssh key ststem will ask you for passphrase (recommended) but you can skip it also | |
- That's you have the ssh key | |
- Check it with: $ ls -al ~/.ssh |
This file contains 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
Please follow these steps to point your domain name from namecheap domain to the Netlify nameservers: | |
- Having logged into Namecheap account, go to your Domain List -> click 'Manage' next to the domain website.com -> locate the 'Nameservers' section; | |
- Choose ‘Custom DNS’ in the drop-down menu; | |
- Fill in your custom nameservers into empty lines; | |
4 lines in total : | |
dns1.p03.nsone.net | |
dns2.p03.nsone.net | |
dns3.p03.nsone.net |
This file contains 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
Problem: Every push prompt me to input username and password. | |
I would like to avoid it for every push, but how to configure to avoid it? | |
Answer: Using SSH authentication on terminal. | |
1. Generate an SSH key | |
Linux/Mac | |
Open terminal to create ssh keys: |
git push -f <remote> <branch>
git push -f origin master
This file contains 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
# Double Colon (::) is namespace resolution. It can also call Class Level Constants. So when you do this: | |
MyModule::MyClass::MySubClass | |
MyModule::MyClass::MySubClass::CONSTANT | |
# it is calling the name space of: | |
module MyModule | |
class MyClass | |
class MySubClass | |
CONSTANT = 'test' |
This file contains 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
## | |
* ORM is Object Relational Mapper. It means you don't have to manually call the database yourself; the ORM handles it for you. | |
* Ruby on Rails uses one called ActiveRecord, and it's a really good one. | |
* ORM allows you to do things such as: | |
User.find(50).contacts | |
Instead of manually writing a SELECT statement with JOINs, WHEREs, etc. | |
********** |
This file contains 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
Below are the setups to run Ruby on Rails application on your system. | |
Make sure Ruby is installed on your system. Fire command prompt and run command: | |
ruby -v | |
Make sure Rails is installed | |
rails -v | |
If you see Ruby and Rails version then you are good to start, other wise Setup Ruby On Rails on Ubuntu |
NewerOlder