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
| # Install | |
| # via http://askubuntu.com/questions/510056/how-to-install-google-chrome | |
| wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
| sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' | |
| sudo apt-get update | |
| sudo apt-get install google-chrome-stable | |
| # Update |
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
| Kiểm tra model có bị lỗi abc trên thuộc tính xyz trong rails | |
| model.errors.of_kind? :xyz, :abc //true or false |
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 firewall | |
| sudo ufw status verbose | |
| # Open port | |
| Nếu bạn muốn mọi người trên internet truy cập được vào máy chủ của bạn thì bạn cần mở port trong firewall để cho phép họ truy | |
| thông qua port vừa mở. | |
| sudo ufw allow 22/tcp | |
| # List open port |
NewerOlder